解决方案 »

  1.   


    document.getElementById("ttt3").onmouseover = function(oEvent){
      oEvent = window.event || oEvent;
      if(document.all){
        oEvent.cancelBubble = true;
      }else{
        oEvent.stopPropagation();
      }
    };
      

  2.   

    应该换个事件,onmouseout ....
      

  3.   

    id=ttt2的层里有一个 onmouseout的事件,当鼠标从ttt2层移动开时候会触发此函数test2,可是为什么当ttt2移动到ttt3区域内(ttt3属于ttt2层啊?)也会触发test2()貌似在IE下这种情况是会触发的,在FF下应该不会!
    解决方法:
    ToChildElement(srcTarget, window.event.toElement)
    function ToChildElement(parent, child)
    {
        if(parent == null || child == null) return false;
        for(var i=0; i<parent.childNodes.length; i++){
            if(child == parent.childNodes[i]){
                return true;            
            }
        }
        for(var i=0; i<parent.childNodes.length; i++){
           if(ToChildElement(parent.childNodes[i], child)){
                return true;
           }       
        }
        return false;
    }
      

  4.   

    问题依然存在您的代码没作用啊我把你代码里面的onmouseover改成onmouseout,问题同样存在顺便问一下,你这个代码意思是说:把id=ttt3的onmouseover事件的作用修改了?
      

  5.   

    老大,代码不能用啊,另外ToChildElement();这个函数里的第一个参数srcTarget是什么意思?这个是什么变量?