Need delay in opening main menu
Need delay in opening main menu
Hi, I'm using version 5.0 and needs the main menu to have a slight delay before dropping down. I've changed the var _menuOpenDelay (on menu_data.js) but no effect. Is menu_data.js the only place I need to modify _menuOpeDelay? If so, how do I make it work?
Thanks,
Mike
Thanks,
Mike
Re: Need delay in opening main menu
I assume you mean before the subs drop down, correct?maditya wrote:Hi, I'm using version 5.0 and needs the main menu to have a slight delay before dropping down.
Yes, that's the only place. Keep making it bigger until you get the effect you want. Mine is at 750, for example (3/4 second).maditya wrote:I've changed the var _menuOpenDelay (on menu_data.js) but no effect. Is menu_data.js the only place I need to modify _menuOpeDelay? If so, how do I make it work?
John
A few things (just because I have a headache and feel like being picky)...
1. Upgrade! You're running RC31, we're now at 5.02 FINAL release. That puts you way back.
2. Take the ; off of the 3000. You have _menuOpenDelay=3000; - should be _menuOpenDelay=3000
3. Menu items that are not used can be left out of the code; e.g., separatorcolor="";. Just dump it.
4. HTML-picky - tags should be closed in the opposite order they are opened. You have...
Should be...
<b> is being depreciated by the W3C, so the above should actually be...
1. Upgrade! You're running RC31, we're now at 5.02 FINAL release. That puts you way back.
2. Take the ; off of the 3000. You have _menuOpenDelay=3000; - should be _menuOpenDelay=3000
3. Menu items that are not used can be left out of the code; e.g., separatorcolor="";. Just dump it.
4. HTML-picky - tags should be closed in the opposite order they are opened. You have...
Code: Select all
aI("text=<b><u>Travel Planning</b></u>;url=;");
Code: Select all
aI("text=<b><u>Travel Planning</u></b>;url=;");
Code: Select all
aI("text=<strong><u>Travel Planning</u></strong>;url=;");
John
The delay only works for child menus being opened from a parent menu.
As you are using the popup, the openMenuDelay value will have no effect.
This is a custom function that will open a menu, using popup() with a delay.
You then need to call the menu using:
Hope this helps
Andy
As you are using the popup, the openMenuDelay value will have no effect.
This is a custom function that will open a menu, using popup() with a delay.
Code: Select all
<script>
function delayedPopup(_menu,_delay,_img) {
args=arguments
_newPopup="popup('"+args[0]+"')"
if(args[2]) {
_newPopup="popup('"+args[0]+"','"+args[2]+"')"
}
setTimeout(_newPopup,_delay)
}
</script>
Code: Select all
onmouseover="delayedPopup('TravelPlanning',800,'TravelPlanningmenu')"
Andy
Hi,
Now that I have the delay working, the menu doesn't seem to close properly. If you just mouseover the main menu without focusing on it, the menu drop downs but won't close until you mouseover the submenus.
I've set the _menuCloseDelay=0 but no effect.
URL: http://www.chicagocityblessing.org/temp/menutest.html
Any ideas? Thanks!
Now that I have the delay working, the menu doesn't seem to close properly. If you just mouseover the main menu without focusing on it, the menu drop downs but won't close until you mouseover the submenus.
I've set the _menuCloseDelay=0 but no effect.
URL: http://www.chicagocityblessing.org/temp/menutest.html
Any ideas? Thanks!