没有反应,求指点
<script type="text/javascript">
window.onload=function(){
var div1=document.getElementById('div1');
div1.onmouseover=function(){
startmove();
}
}
var timer=null;
function startmove(){
var div1=document.getElementById('div1');
timer=setInterval(function(){
div1.style.left=div1.offsetleft+10+'px';
},30)
}
</script>