PDA

View Full Version : DD Mega Menu - drop down menu delay



Sixstringz
08-31-2011, 05:21 PM
1) Script Title: DD Mega Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/ddmegamenu.htm

3) Describe problem: Is it possible to set a delay on the drop down menus so they do not appear instantly on hover? I found another post where you made some modifications to a menu script to allow this same thing:

http://www.dynamicdrive.com/forums/showthread.php?t=50093

I am wondering if there is a way to do the same for your excellent Mega Menu? Any help you can provide would be greatly appreciated.

ddadmin
09-01-2011, 06:42 AM
Sure, try the below modified .js file. It adds a new "showdelay" option you can define to specify a delay (in milliseconds) before the mega menu in question appears:


ddmegamenu.docinit({
menuid:'solidmenu',
showdelay:300,
dur:200 //<--no comma after last setting
})

Sixstringz
09-01-2011, 06:10 PM
Works perfectly. What a great improvment to an already awesome menu system.

Thanks!

ddadmin
07-16-2015, 12:33 AM
Here is the attached modified .js file again, as for some reason it was missing in my post on 08-31-2011.

gregtallent
07-16-2015, 07:02 AM
Thank you, DD Admin, works great. Really useful scripting.