Is there a way to make jquery wait a certain amount of time before the mouseout event fires?
He shoots too early, and I would rather wait 500 ms before he selects the mouse. Sample code that I use below.
$('.under-construction',this).bind({
mousemove: function(e) {
setToolTipPosition(this,e);
css({'cursor' : 'crosshair' });
},
mouseover: function() {
$c('show!');
showUnderConstruction();
},
mouseout: function() {
$c('hide!');
hideUnderConstruction();
},
click: function() {
return false;
}
});
Is there a jquery way for this or should I do it myself?
source
share