Closed Thread Icon

Topic awaiting preservation: hide dhtml menu after a delay (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8351" title="Pages that link to Topic awaiting preservation: hide dhtml menu after a delay (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: hide dhtml menu after a delay <span class="small">(Page 1 of 1)</span>\

 
slim___shady
Nervous Wreck (II) Inmate

From: canada
Insane since: Aug 2002

posted posted 10-18-2002 05:40

I have this dhtml menu here. I would like the flyouts to disappear about a second after mouseout, not immediately. Please help.

[This message has been edited by slim___shady (edited 10-18-2002).]

[This message has been edited by slim___shady (edited 10-18-2002).]

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 10-18-2002 05:45

Oh, jeez. That script has a lot of duplicated code. You gotta put that all in a function which is called multiple times. Then you can take the part that makes the menu invisible, and merely put it in a setTimeout() function call.

slim___shady
Nervous Wreck (II) Inmate

From: canada
Insane since: Aug 2002

posted posted 10-18-2002 05:53

Thanx slimey. I sort of figured I would need this setTimeout() thingy, but I don't know how exactly. Please explain coz I'm kinda new.

Hugh
Paranoid (IV) Inmate

From: Dublin, Ireland
Insane since: Jul 2000

posted posted 10-24-2002 20:28

onmouseout="setTimeout('TheFunctionForHiding()',1000);"

should do the trick 1000 == 1 second

« BackwardsOnwards »

Show Forum Drop Down Menu