确实是 点击prev 和next点快了下面的焦点样式就不对了 有没有大神知道怎么解决这个问题呢 求解啊......
next.onclick = function()
{
if(animated == false) {
if (index == 5) {
index = 1;
}
else {
index += 1;
}
showButton();
animate(-700);
}
}
prev.onclick = function()
{
if(animated == false) {
if(index == 1){
index = 5;
}
else{
index -= 1;
}
showButton();
animate(700);
}
}