<script>
window.onload=function(){
var div1=document.getElementById("fly");
div1.onmouseover=function(){
startMove();
}
}
var t=null;
function startMove(){
var div1=document.getElementById("fly");
t=setInterval(function(){
if(div1.offsetLeft==0){
clearInterval(t);
}else{
div1.style.left=div1.offsetLeft+10+'px';
}
},30);
}
</script>
帮我检查一下,怎么停不下来呢?