Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Delaying a jquery event Re: Delaying a jquery event

#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();
}

$(“#push”).hover(function(){
// do nothing
}, function(){
var int = setInterval(“doTheHide()”,2000);
});