81,092
社区成员
发帖
与我相关
我的任务
分享
//2、让字体闪烁
jQuery.fn.flash=function(color, duration){
var current=this.css('color');
this.animate({color: 'rgb('+color+')'}, duration / 2);
this.animate({color: current}, duration / 2);
}
$('#someid').flash('255,0,0', 1000);
我就没有明白 它怎么能好用呢?怎么调用的?我试验了下 就是不好用总有错。可是网上好多帖子都贴这个说是好用,正解什么的,,郁闷。谁能写个实例我看看啊。或者改一改 我想看看是什么效果。
setInterval(function(){$("#ads").animate({color:'#aac'})},200);
setInterval(function(){$("#ads").animate({color:'#caa'})},250);