Line 21: | Line 21: | ||
contentAuto(); | contentAuto(); | ||
mouseWheel(); | mouseWheel(); | ||
− | |||
bindNav(); | bindNav(); | ||
add1(); | add1(); | ||
Line 33: | Line 32: | ||
function add2() { | function add2() { | ||
btn1.onclick=function () { | btn1.onclick=function () { | ||
− | toMove(1) | + | toMove(1); |
+ | iNow=1; | ||
} | } | ||
btn2.onclick=function () { | btn2.onclick=function () { | ||
− | toMove(2) | + | toMove(2); |
+ | iNow=2; | ||
} | } | ||
} | } | ||
Line 44: | Line 45: | ||
if(oContent.addEventListener){ | if(oContent.addEventListener){ | ||
oContent.addEventListener('DOMMouseScroll',function(ev){ | oContent.addEventListener('DOMMouseScroll',function(ev){ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
var ev = ev || window.event; | var ev = ev || window.event; | ||
clearTimeout(timer); | clearTimeout(timer); |
Revision as of 11:53, 25 October 2017