Question

I'm trying to achieve a menu where you can hover the first level and the second and the third level (of the first item in second level) opens.

I thought it would be possible with the onHide-callback function of superfish or with the pathClass-argument but it failed so far.

My menu looks something like this: jsfiddle

In the example on jsfiddle it should be hovered ASDF and the 3rd level would open with bla 1 and bla 2

Any hints how this problem could be solved would be appreciated.

Was it helpful?

Solution

You should be able to use the onShow callback to do what you want:

$('.mainnav>ul').superfish({
    onShow: function() {
        $( this ).find( ".sf-with-ul:first" ).closest("li").trigger("mouseenter");
    }
});

http://jsfiddle.net/petersendidit/XnxaE/7/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top