window.setInterval(move, 2500)/ / move后面设置毫秒
gap.eq(1).mouseover(function() {
gap.css("background-color", "white")
gap.eq(1).css("background-color", "#A52A2A")
})
gap.eq(2).mouseover(function() {
gap.eq(2).css("background-color", "#A52A2A")
gap.eq(1).css("background-color", "white")
gap.eq(0).css("background-color", "white")
})
gap.eq(0).mouseover(function() {
gap.eq(0).css("background-color", "#A52A2A")
gap.eq(1).css("background-color", "white")
gap.eq(2).css("background-color", "white")
})
gap.eq(0).mouseover(function() {
toplogo.animate({
marginLeft: 0 + "px"/ / 第一次轮播为0像素
},
500,
function() {
})
})
gap.eq(1).mouseover(function() {
toplogo.animate({
marginLeft: (-1349) + "px"/ /第二次就是这张图片的宽度
},
500,
function() {
})
})
gap.eq(2).mouseover(function() {
toplogo.animate({
marginLeft: (-2698) + "px"/ / 这是到第三张图片后的宽度
},
500,
function() {
})
})