1. 首页
  2. 数据库
  3. 其它
  4. jquery让指定的元素闪烁显示的方法

jquery让指定的元素闪烁显示的方法

上传者: 2020-12-23 05:35:28上传 PDF文件 23.59KB 热度 17次
本文实例讲述了jquery让指定的元素闪烁显示的方法。分享给大家供大家参考。具体如下: 这段jQuery代码非常简单,功能就是让指定的元素不断的变换颜色,闪烁显示,调用也非常简单。 jQuery.fn.flash = function( color, duration ) { var current = this.css( 'color' ); this.animate( { color: 'rgb(' + color + ')' }, duration / 2 ); this.animate( { color: current }, duration / 2 ); } // /
下载地址
用户评论