Possible to remember submenu state?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
densy
Beginner
Beginner
Posts: 4
Joined: Mon Jun 09, 2008 9:38 am

Possible to remember submenu state?

Post by densy »

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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Possible to remember submenu state?

Post by Ruth »

Hi,

There are two properties you can use for things like this. To keep a menu 'alive' you would use the property keepalive.

Code: Select all

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
Post Reply