function startMove () {
var oDiv = document.getElementById('box');
my_Time=setInterval(function(){
if(oDiv.offsetLef==0){
clearInterval(my_Time);
}else{
oDiv.style.left = oDiv.offsetLeft+1+"px";
}
},30);
};
function startMove () { var oDiv = document.getElementById('box'); my_Time=setInterval(function(){ if(oDiv.offsetLefT==0){ clearInterval(my_Time); }else{ oDiv.style.left = oDiv.offsetLeft+1+"px"; } },30); };
第四行offsetLeft没打对!