I am using a Jquery time delayed fader like below, but need to reinitialize it based upon events in the code, ie knock the timer back to zero. How do I do this? I've tried just calling fader() again.
function fader(){
$(ajdiv).delay(10000, function(){$(ajdiv).fadeOut()});
}
jQuery.fn.delay = function(time,func){ //run a delayed function
return this.each(function(){
setTimeout(func,time);
});
};