NameSilo

How to delay a pull-down menu in DW

Spaceship Spaceship
Watch

Kenny Bania

New Member
Impact
1
hi.

i'm not an advanced web guy, and i know very little about coding.
but anyways...


i want to put a slight delay on a pull-down in dreamweaver using javascript. i've been able to do so successfully by using:

onMouseOver="MM_showHideLayers('blah','','blah','','blah')" in the body and

function hideIt() {
timer=setTimeout("MM_showHideLayers('blah','','blah','','blah')",1000);
}

in the head


the problem is that if i (or a visitor) scrolls past the menu bar to get to the top or bottom of the page, the corresponding drop down menu will pull down, even though that's not what the viewer wants.
what i want is so that it only comes down after the mouse has been _idle_ on it for 1000 milliseconds. this way, you will able to scroll the mouse past the menu and not have this menu popping up unannounced.

do you guys understand?
and i would rather not use the onClick="MM_showHideLayers"


any insight would be greatly appreciated.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Can you link us up to a sample page where we can see the script?
 
0
•••
if you make a dropdown menu in fireworks you can set the delay time. (i havent done it in quite a while so i dont remember exactly how) if you have fireworks make one there and just copy the code

its very likely that dreamweaver gives you that option also by the behavior properties
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back