您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

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

2024/3/21 23:53:18发布32次查看
本文实例讲述了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 );}// http://www.jb51.net then use the above function as:$( '#importantelement' ).flash( '255,0,0', 1000 );
希望本文所述对大家的jquery程序设计有所帮助。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product