Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:18

Possible to remember submenu state?


Poster: densy
Dated: Monday July 14 2008 - 10:29:29 BST

I've succesfully created a menu which has a horizontal toplevel menu, with submenus folding out when the user hovers over them with the mouse. What I would like now is to be able to have the menu to keep the submenu that folded out in place instead of going away again after a few seconds. I've searched the website and the forums for this, but haven't found anything regarding this matter.

I would also like to know if its possible to have a submenu already be folded out when a user visits a certain page within the site. I've also found no way (yet) to do this with the menu. Is it even possible to do this?

Thanks in advance for your help.

Re: Possible to remember submenu state?


Poster: Ruth
Dated: Monday July 14 2008 - 13:58:05 BST

Hi,

There are two properties you can use for things like this. To keep a menu 'alive' you would use the property keepalive.
Code:
This property allows the menu to remain active when it would normally have disappeared. The only way to close the menu is to select a menu item, another menu or click elsewhere on the page.
Values: 'true', 'false', '0' or '1' Example: keepalive=1;


To have a menu open on the page when the person reaches the page you need the module called Automatic Menu Opening. This module will open a submenu when a url in that submenu matches the url of the page.

I believe the modules are in the download or you can find them on the bolt-on modules page

http://www.milonic.com/menumodules.php and here is a demo of it working

http://support.milonic.com/demos/openme ... /index.htm

Below my name are some links, the ones to the style, menu and item properties will give you information on the different properties that can be applied to the menu either in the style section, the menu itself or in an item.

Ruth