How do I modify this script so that when I mouseout of the submenu, it still remains open for x seconds?
Currently it slidesup (hides) as soon as I mouseout. I need hoverintent like functionality where it hides after x seconds.
HTML:
<div id="navigation">
<ol>
<li><a href="#" class="parent">Menu 1</a>
<div class="submenu clear"><div class="listings clear"> content</div></div>
</li>
</ol>
</div>
Thanks for your help!
Something like:
would work
If your basing it on your html in your question/ JSfiddle, you would change your JS in the select statement to look like this:
Also it would be better to wrap:
in:
than
To get other links to slide up when you go on to another link straight away you need this:
below whats already in:
So it will look like: