Hi there,
well you have the function hover() and you can use it like this:

$("#link").hover(function() {
//Will be executed when you mouse over
//Set a timer that will wait for 2 secs
window.setTimeout (function() {
$("#navigation").show(); //Show navi
), 2000);
},
function() {
//Will be executed when you move out again
$("#navigation").hide(); //Hide navi
});

Hope this helps!

2006/9/13, Daniel Ruiz <[EMAIL PROTECTED]>:

Is there any way in jquery to do something like this?

if mouseover for 2 seconds then do this, else do nothing

 

Basically the client I have doesn't want to use onclick to open a hidden navigation but they also don't like the mouseover because a user may move over it by accident. What they want is something in between so a user can move over a link to open the nav but have to hold it there for a couple of seconds for it to trigger the function to show the nav.

 

Any ideas would help me a lot thank

 

Daniel


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
Paul Bakaus
Web Developer
------------------------
Hildastr. 35
79102 Freiburg
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to