Commit 2f9d9d27 by lmf

优化轮播图js

parent a07cafc0
...@@ -33,10 +33,10 @@ ...@@ -33,10 +33,10 @@
$('.count li').eq(current).toggleClass('current').siblings().removeClass('current'); $('.count li').eq(current).toggleClass('current').siblings().removeClass('current');
} }
// 手动 // 手动
$('.count li').mouseenter(function(){ // $('.count li').mouseenter(function(){
current=$(this).index() // current=$(this).index()
show() // show()
}) // })
// 鼠标进图自动暂停 // 鼠标进图自动暂停
$('#box').hover(function(){ $('#box').hover(function(){
clearInterval(timer); clearInterval(timer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment