Hi there - I was wondering what the best way would be to add a delay on my drop down menu. Currently my drop-down is completely CSS. Here is a link to my layout:
I want to ensure that the menu doesn’t disappear when the user moves the mouse diagonally from the menu item to one of the subitems. For example, if they are hovering over Enjoying Burlington and want to go to Fast Facts…currently they need to move the mouse down in to the panel and the move to the right…as opposed to moving straight to Fast Facts on a diagonal line.
I know there is the hoverIntent script but I have no idea how to implement it in to my menu.
I wouldn’t bother replying if i just read the title…
As lk19 stated:
For example, if they are hovering over Enjoying Burlington and want to go to Fast Facts…currently they need to move the mouse down in to the panel and the move to the right…as opposed to moving straight to Fast Facts on a diagonal line.
…which sounds like the upon loosing focus to the first sub navigation element the menu was closing altogether!
<script type="text/javascript">
function DD(li){
setTimeout('',1000);
li.getElementsByTagName('ul')[0].style.display="block";
}
function DD_out(li){
li.getElementsByTagName('ul')[0].style.display="none";
}
</script>
The JS shouldn’t need modified, the HTML of couse will. Just make sure you keep the onmouseover and onmouseout attributes the same placing them where necessary.