Home › Forums › JavaScript › Delaying a jquery event › Re: Delaying a jquery event
February 25, 2009 at 10:13 pm
#54332
Chris Coyier
Keymaster
Typically delays are handled with the setInterval function.
http://www.w3schools.com/HTMLDOM/met_wi … terval.asp
Code:
function doTheHide() {
$(“#reveal”).slideUp();
}
$(“#reveal”).slideUp();
}
$(“#push”).hover(function(){
// do nothing
}, function(){
var int = setInterval(“doTheHide()”,2000);
});