没有单一的执行onmouseover事件的选项吧,不执行是怎样的情况,代码错误还是没有触发?最好检查一下代码先。

解决方案 »

  1.   

    onmouseover="m()"m() {
      if (isIE) {
        exe
      }
    }
      

  2.   

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
    </head><body>
    <script language="javascript">
    function document.onmouseover()//鼠标放在上面
    {
    alert("mouseover");
    var eSrc = window.event.srcElement;
    alert(eSrc.id);
    }
    </script>

    </body>
    </html>这个是我写的代码 可是就是在有的机器上不执行
      

  3.   

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
    </head><body>
    <script language="javascript">function doOver()//鼠标放在上面
    {
    alert("mouseover");
    var eSrc = window.event.srcElement;
    alert(eSrc.id);
    }
    document.body.onmouseover=doOver;
    </script></body>
    </html>
      

  4.   

    有的机器是指什么机器,能正常运行的和不能正常运行的是否是同样的浏览器?按照你的写法,似乎是重写了onmouseover方法,你又在哪里调用了呢?
      

  5.   

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
    <script language="javascript" for=document Event=onmousemove>
    function document.onmouseover()//鼠标放在上面
    {
    alert("mouseover");
    //var eSrc = window.event.srcElement;
    //alert(eSrc.id);
    }
    </script>
    </head><body>
    </body>
    </html>