I would like to blink my menu text. I have this code, but it doesn't work with IE.
(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("color") == "rgb(255, 0, 0)")
{
$(obj).css('color','#000000');
}
else
{
$(obj).css('color','rgb(255, 0, 0)');
}
}, options.delay);
});
}
}(jQuery))
$(document).ready(function(){$('.blink').blink()})
Can someone help me? Thank you!