Delay to open submenu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
blaine
Super Advanced
Super Advanced
Posts: 59
Joined: Mon Apr 05, 2004 11:29 pm

Delay to open submenu

Post by blaine »

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.
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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
blaine
Super Advanced
Super Advanced
Posts: 59
Joined: Mon Apr 05, 2004 11:29 pm

Post by blaine »

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.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

A test URL would be extremely helpful.
John
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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
blaine
Super Advanced
Super Advanced
Posts: 59
Joined: Mon Apr 05, 2004 11:29 pm

Post by blaine »

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