你在最外边给gg这个元素定义的鼠标覆盖的事件gg.onmouseover = function(){
当然是会执行了

解决方案 »

  1.   

    鼠标up后
    没有执行到document.onmousemove = null; document.onmouseup = null;
    (ps:不知道是没执行到,还是写法错误)可以试一下  当拖动一次图片过
    然后任意地方按下鼠标   拖动图片  都是可以拖动的 
      

  2.   

    document.onmousedown不是又重新定义了么..
      

  3.   

    document.onmouseup = function ()
    {
    document.onmousemove = null;
    document.onmousedown = null;
    }
    你的意思应该是吧mousedown给清了吧
      

  4.   

    晕   
    你的代码不是那样的document.onmouseup = function ()
    {
    document.onmousemove = null;
    document.onmouseup = null;//应该是document.onmousedown = null;
    }  
      

  5.   

    你没有清onmousedown事件
    所以当你在页面任何位置按下鼠标时
    又重新定义了onmousemove和onmouseup事件