Search code examples
jquerymenusliderhref

a href don't do anything in li menu slider (sliding block when li is hover)


I try using a slider menu from this site http://www.gmarwaha.com/blog/category/client-side/jquery/#.

Everything is ok, but when I want put in a href some url if I click on this then do anything

Because why?

Thank for help!

Sorry for my language.

Regrets, Kropamk


Solution

  • You have to change the return on the click event to true, on this method:

    $(function() {
        $(".menu-lava").lavaLamp({
            fx: "backout",
            speed: 700,
            click: function(event, menuItem) {
                return false;  // <--- Here
            }
        });
    });
    

    It's on the HTML page. I hope this helps.