套个层不得了,控件位置等于层位置,鼠标拖动层

解决方案 »

  1.   

    关注中!
    我写的鼠标右键就是使用的是层
    是可以的
      

  2.   

    怎么接受不道>?
    <div id=xx onmousedown=setCapture() onmouseup=releaseCapture() onmousemove=sw() style="position:absolute;background:red">
    <OBJECT id=zz CLASSID="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
    <SPAN STYLE="color:red">ActiveX control failed to load! 
    -- Please check browser security settings.</SPAN>
    </OBJECT>
     </div>
    <script>
    function sw()
    {
    if(event.button==1)
    {
    xx.style.left=event.x
    xx.style.top=event.y
    }
    }
    </script>