ff下onmousemove鼠标按不按都是1所以就不能这样用了 <!-- function drag(obj) { var s = obj.style var b = document.body var x = event.clientX + b.scrollLeft - s.pixelLeft var y = event.clientY + b.scrollTop - s.pixelTop var m = function() { if (event.button == 1) { s.pixelLeft = event.clientX + b.scrollLeft - x s.pixelTop = event.clientY + b.scrollTop - y } else document.detachEvent("onmousemove", m) } document.attachEvent("onmousemove", m) if (!this.z) this.z = 999 s.zIndex = ++this.z event.cancelBubble = true } //--> [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]