* { margin:0; padding:0; } .main { position:absolute; left:40%; top:30%; margin:0 auto; overflow:hidden; height:500px; width:500px; } .go { position:absolute; width:379px; height:370px; background:url(http://www.jq22.com/tp/1c5534be-181f-48ab-8990-6a99449630b2.png) no-repeat; filter:alpha(opacity:100); opacity:1; left:0; top:0; } #go3 li { width:60px; height:30px; background:#fff; filter:alpha(opacity:0); opacity:0; float:left; list-style:none; margin-left:50px; } .active { position:absolute; width:379px; height:370px; left:0; top:0; background:url(http://www.jq22.com/tp/3c12a70d-01a8-48f4-b1f5-4dd7e022e782.png) no-repeat; filter:alpha(opacity:0); opacity:0; z-index:2; }
doMove(iTarget)函数里的2000表示呼吸灯频率,其余的修改样式即可。
感谢平台,入行初期平台的插件帮了很多忙,现在略懂皮毛,自己写的希望大家喜欢