tags:

views:

433

answers:

4

Is it possible to blink a image with JQuery?

I need to blink certain image with specific class. It should work in both IE and firefox

+1  A: 

http://stackoverflow.com/questions/1392930/is-there-a-blink-plugin-in-jquery-to-implement-the-following

Natrium
This link got more upvotes than the actual answer.
Yuriy Faktorovich
-1 If you find a dupe, post it as a comment, not an "answer."
Jonathan Sampson
+1  A: 
$(function() {window.setInterval("$('.myImage').toggle();",2000);});
Yuriy Faktorovich
+1  A: 

Something like this:

function blink(time, interval){
    var timer = window.setInterval(function(){
        $("img").css("opacity", "0.1");
        window.setTimeout(function(){
            $("img").css("opacity", "1");
        }, 100);
    }, interval);
    window.setTimeout(function(){clearInterval(timer);}, time);
}

And start function with blink(900000, 1000);

jerone
i wanted to blink my image for 15 min
jatin
Implemented your suggestion, see above...
jerone
A: 

15 minutes? You could give jQuery Timers a try (http://jquery.offput.ca/every/)

dHahn