Article Source: Blue ideal
if (whichIt == null) {return true;}} whichIt.style.pixelLeft = whichIt.offsetLeft; whichIt.style.pixelTop = whichIt.offsetTop; currentX = (event.clientX document.body.scrollLeft); currentY = ( event.clientY document.body.scrollTop);} else {window.captureEvents (Event.MOUSEMOVE); if (checkFocus (e.pageX, e.pageY)) {whichIt = document.floater; StalkerTouchedX = e.pageX-document .floater.pagex; stalkertouchedy = e.pagey-document.floater.pagey;}} Return True;}}}}}}}} function moveit (e) {if (Whichit == NULL) {Return False;}} (ie) {newx = (Event .clientX document.body.scrollLeft); newY = (event.clientY document.body.scrollTop); distanceX = (newX - currentX); distanceY = (newY - currentY); currentX = newX; currentY = newY; whichIt. Style.pixelleft = DistanceX; Whichit.Style.pixeltop = distancenessy; if (WhichIt.style.pixelTop
document.body.scrollTop - whichIt.style.pixelHeight - 5; event.returnValue = false;} else {whichIt.moveTo (e.pageX-StalkerTouchedX, e.pageY-StalkerTouchedY); if (whichIt.left <0 self. Pagexoffset) Whichit.Left = 0 Self.pagexoffset; if (Whichit.top <0 Self.pageyoffset) Whichit.top = 0 Self.pageYoffset; IF ((Whichit.left Whichit.clip.width> = WINDOW.INNERWIDTH SELF.PAGEXOFFSET-17)) Whichit.EFT = (WINDOW.INNERWIDTH SELF.PAGEXOFFSET) -Whichit.Clip.width) -17; if ((Whichit.top Whichit.clip.Height)> = (Window.innerHeight Self.pageYoffset-17)) Whichit.top = (Window.innerHeight Self.pageyoffset) -whichit.clip.Height) -17; return false;} function Dropit () {Whichit = NULL; if (ns) Window.releaseEvents (event.mousemove); return true;} if (ns) {Window.captureEvents (Event.MouseUp | Event.MOUsedown WINDOW.INMOUSEDOWN = GRABIT; window.onmousemove = moveIt; window.onmouseup = dropIt;} if (IE) {document.onmousedown = grabIt; document.onmousemove = moveIt; document.onmouseup = dropIt;} if (NS || IE) action = window.setInterval ( "HeartBeat (), 1); script> Follow the scroll bar font> 转载请注明原文地址:https://www.9cbs.com/read-98557.html