iTarget是目标值,那在这里是多少?
function startMove(iTarget){
clearInterval(timer);
timer = setInterval(function(){
var speed = 0;
if (oDiv.offsetLeft > iTarget){ // 当左侧偏移量大于目标位置时,那么速度是向左移动,为负值, 否则为正值
speed = -10;
}else{
speed = 10;
}