Adding a Short Delay before Triggering MouseOver Event
Dear All
I've been using this little bit of code to show a div when the user rolls over a link:
-
$('a#eventspopupbtn').mouseover(function() { $('#menu').hide('fast');
- $('#eventspopup').show('fast');
- return false;
-
});
I have been trying to extend this bit of code so that there is a short delay built in so that if the user rolls over the link by mistake or 'just passing through' the div is not displayed. I tried using setTimeout but couldn't get that working (unfortunately, I can't share that with you because I lost the code).
I would really appreciate any help or advice you may be able to share on this.
Many thanks
Daniel