Re: Vertical menu expanded on page load

Home Forums Older releases 0.9.x Vertical menu expanded on page load Re: Vertical menu expanded on page load

#1535
admin
Keymaster

Hi,

Just expanding the menu on load is as simple as using the following (after the menu is initialized):

$('#main-menu').smartmenus('itemActivate', $('#main-menu a.current').eq(-1));

But I suspect you probably would like the menu to behave a bit differently than the others. For example, hide it when some other sub menu is shown but show it again automatically after the other one is hidden (i.e. make it sort of sticky). So if you need further tweaks, please explain in details how exactly it should work and also it would help very much if you could post a live example so I could test your exact code.

Cheers!

Register

You will be emailed a link to set your password.

Login

Lost password?