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:09

Delay to open submenu


Poster: blaine
Dated: Thursday September 16 2004 - 19:45:53 BST

Doing a quick search I did not see this answer but I know it must have been asked before.

How can I change the delay to show the a submenu. I want it to expand automatically on hover but just find it too sensitive and end up triggering it when I don't want to.


Poster: kevin3442
Dated: Friday September 17 2004 - 0:53:59 BST

Hi Blaine,

There's a global variable at the top of menu_data.js called _menuOpenDelay. The value assigned to that variable sets the delay you speak of, measuerd in milliseconds.

Hope that helps,

Kevin


Poster: blaine
Dated: Friday September 17 2004 - 1:25:27 BST

Thanks Kevin,

That is working for my submenu's that are horizontal but I have a siteheader menu that has a vertical dropdown submenu and it does not appear to effect that menu.

Interesting is that this dropdown menu also has a submenu that cascades horizontally to the right and it is using the set delay. It appears to just not effect the submenu that drops down from the siteheader menu.

I noticed that I could set it outside the menustyle definition or within the style but it was a global setting so the last setting would take effect.

I can change many other settings for the menu styles and they are taken effect. Both IE and Firefox show the same thing.

This is an internal site right now and I would have to setup an external example if you need to see this working.


Poster: John
Dated: Friday September 17 2004 - 4:33:18 BST

A test URL would be extremely helpful.


Poster: kevin3442
Dated: Friday September 17 2004 - 7:46:07 BST

Hi Blaine,

I dig... I think. Try setting horizontalMenuDelay = true; at the top of your menu_data.js file, where the other globals are set (note that there is no underscore, _, at the front of the variable name). That should apply the _menuOpenDelay to all submenus, regardless of the orientation of the parent menu.

Hope that helps,

Kevin


Poster: blaine
Dated: Friday September 17 2004 - 13:49:09 BST

YES!! That's it - thank you :)

Am I correct then - these settings are global and can not be set for each menustyle?

Did I miss the documentation on these variables - where should I have looked ?