PDA

View Full Version : AnyLink CSS Menu Delay



kellerbrooke
02-11-2008, 12:11 AM
1) Script Title: AnyLink CSS Menu

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

3) Describe problem: I would like to create a delay for when the menu appears. I tried using the code I found in the forum for the Anylink Menu, but it didn't work. Is there a different piece of coding for the CSS version? Thank you so much!

kellerbrooke
02-11-2008, 09:04 PM
I'm sure this is something really simple, but if anyone could help, that would be great.

Guyon
02-12-2008, 01:40 AM
The first line of anylink.js should have something like this:


var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds)

Change the number (250) to whatever you want.

ddadmin
02-12-2008, 04:53 AM
Guyon, actually what the OP was asking is the reverse of what you had posted, which is how to add a delay before the drop down menu is shown onMouseover. To Keller's question, just use the attached modified anylink.js file, and then in your HTML, you would change the default drop down function to what's shown below in red instead:


<a href="http://www.dynamicdrive.com" onClick="return clickreturnvalue()" onMouseover="delaydropdownmenu(this, event, 'anylinkmenu1')">Anchor Link</a>

FYI how to do this with Anylink Drop Down Menu (non CSS version) can be found in this thread: http://www.dynamicdrive.com/forums/showthread.php?t=27095

kellerbrooke
02-13-2008, 01:58 AM
Thank you so much for the help ddadmin! It works just how I wanted it to now. I really appreciate you taking the time to help me!