晕, 网页里有 window.onmove 这样的系统事件吗????

解决方案 »

  1.   

    window有onmove方法,msdn是这么写德
      

  2.   

    在哪??? 你贴出个URL来, 也许其它的编程语言里有, 但网页里目前为止还没有这个事件
      

  3.   

    谁说没有我晕死~~~
    你是没见过吧???:)<SCRIPT>
    document.execCommand("2D-position",false,true);function fnHandleMove() {
      oXDelta.innerText = event.srcElement.offsetLeft;
      oYDelta.innerText = event.srcElement.offsetTop; 
    }
    </SCRIPT>
    <BODY onmove="fnHandleMove();">
    LEFT : <SPAN id=oXDelta>n/a</SPAN><BR>
    TOP : <SPAN id=oYDelta>n/a</SPAN><BR><DIV CONTENTEDITABLE="true">
    <DIV style="width:300px;height:100px; background-color:red; position:absolute;">
    对象是window的时候就无效了,为什么?</DIV>
    </DIV>
      

  4.   

    window 和 body 都没有,你的代码也不起作用啊
      

  5.   

    .........你拖动那个div不就看见了