0nMouseout回帖就给分
<script   language= "JavaScript ">  
 var   rector=20 
 var   stopit=0    
 var   a=1 
 var   b=1 
 function   init(which){ 
 stopit=0 
 shake=which 
 shake.style.left=0 
 shake.style.top=0   
 }function   rattleimage(){ 
 if   ((!document.all&&!document.getElementById)||stopit==1) 
 return 
 shake.style.top=parseInt(shake.style.top)+rector 
 }     
 function   stoprattle(which){ 
 stopit=1   
 which.style.left=0 
 which.style.top=0 
 }     
  </script>                                         <div                "onMouseover= "init(this);rattleimage() "   onMouseout= "stoprattle(this) ">  </div>      
 shake=which 
 which是当前的是事件的参数,属性id,也就是当前层的id   
 层里是图片,其实动的是层     
------解决方案--------------------你到底想问什么?程序有错吗? 
 我运行过了,鼠标移到层外,该层就自动跑到左上角去
------解决方案--------------------我回帖了`js~~`
------解决方案--------------------不懂,帮顶吧
------解决方案--------------------不知道你要问的是什么耶!!!