function startMove(){
time=setInterval(scrollUp,speed);
}
function scrollUp(){
area.scrollTop++;
if(area.scrollTop==area.offsetHeight){
area.scrollTop=0;
}
if(area.scrollTop % iliHeight==0){
clearInterval(time);
setTimeout(startMove,delay);
}
}
setTimeout(startMove,delay);
time=setInterval(scrollUp,speed);
}
function scrollUp(){
area.scrollTop++;
if(area.scrollTop==area.offsetHeight){
area.scrollTop=0;
}
if(area.scrollTop % iliHeight==0){
clearInterval(time);
setTimeout(startMove,delay);
}
}
setTimeout(startMove,delay);
2016-07-21