或者给那个层加一个onmouseover的事件

解决方案 »

  1.   

    在或者
    用elementFromPoint方法取
      

  2.   

    用elementFromPoint方法取得的对象与event.srcElement是不是一样的?
      

  3.   

    obj.offsetLeft如果是td的话得到是相对于table的left,而不是body的left。
      

  4.   

    我在层上加了onMouseOver事件,可是在层里有表格,在表格上是不是就算MouseOut了?eg:
    <div id="Layer1" style="position:absolute; left:0px; top:60px; width:107px; height:165px; z-index:1000; border:1px #3360A2 solid; visibility: visible;" class="menu" onMouseOur = "this.style.visibility='hidden';"> 
      <table width="100%" height="164" border="0" cellpadding="1" cellspacing="0">
        <tr> 
          <td align="center" class="iteminit" onMouseOver="change(this,'itemover');" onMouseOut="change(this,'iteminit');">会员注册</td>
        </tr>
    </table>
    </div>我移到中间的时候这层就隐藏起来啦。怎么办呢?