使用JQuery闪烁图像 [英] Blink image with JQuery
本文介绍了使用JQuery闪烁图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以使用JQuery使图像闪烁?
Is it possible to blink a image with JQuery?
我需要使用特定类闪烁某个图像。它应该在IE和firefox中工作
I need to blink certain image with specific class. It should work in both IE and firefox
推荐答案
这样的事情:
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);
}
用启动功能>闪烁(900000,1000) ;
这篇关于使用JQuery闪烁图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文