javascript问题
我想在网页中重定位一个层的位置 
 我是这样定义的!   
  <script>  
 function   click() 
 { 
 var   user-document.getElementById( "username "); 
 var   MyDiv=document.getElementById( "mydiv "); 
 *****MyDiv.style.top=user.style.top+10px;*** 
 }   
  </script>  
  <input   type= "text "   id= "username "   onmoveover= "click() "/>    
  <div   id= "mydiv "   style= "position:absolute;top:100px;left:100px; ">  
  </div>  
 我想让层的位置相对text位置重新定位,但总是在带星的那一行报错!!!不知道为什么???
------解决方案--------------------你看你的第一行就有错了!明明是等号你写成了减号~~~~~~~~~ 
 还有如果还不行的话,你把你所谓的带星号的那一行的 10px   用引号引起来看, "10px ".
------解决方案--------------------恩 楼主