I’m using this blink function
(function($)
{
$.fn.blink = function(options)
{
var defaults = { delay:500 };
var options = $.extend(defaults, options);
return this.each(function()
{
var obj = $(this);
setInterval(
function(){
if($(obj).css("visibility") == "visible") {
$(obj).css('visibility','hidden');
}
else{
$(obj).css('visibility','visible');
}
},
options.delay);
});
}
}(jQuery))
$("#bootUp p").blink({delay:300});
I’d like for it to stop on window.load
I’m not sure how to do it, exactly? Any help would be much appreciated. Thanks!
Live Demo
You need to track the ints returned from setInterval and then clearInterval for each of them.