火狐可以,得到event是 onmouseout,ie却是undefineddiv.onmouseout=function(event){
   alert(event)
   //if (isMouseLeaveOrEnter(event, this)) table.style.display="none";}

解决方案 »

  1.   

    <body>
    <div style="background:red;width:200px;height:100px;" id="tt">1231231</div>
    <script> 
    window.onload = function(){
    var div1 = document.getElementById("tt");
    div1.onmouseout=function(event){
    event = event || window.event; //关键
    alert(event)
      //if (isMouseLeaveOrEnter(event, this)) table.style.display="none";
    }
    }
    </script>  </body>
      

  2.   

    顶楼上。ie是把所有的事件都放到window.event一个全局变量里边了
      

  3.   

    event = event || window.event; //获取事件event的兼容写法
      

  4.   

    IE里这样写this的作用域是全局了哦!