한국어
<STYLE type=text/css>#floater { Z-INDEX: 10; 왼쪽: 500px; 가시성: 가시성; 너비: 125px; 위치: 절대; TOP: 146px } </STYLE> <STYLE type=text/css> TD { FONT-SIZE: 9pt; LINE-HEIGHT: 11pt } </STYLE> </HEAD> <BODY > <DIV id=floater style="LEFT: 0px; WIDTH: 89px; TOP: 137px; HEIGHT: 40px"> <TABLE cellSpacing=0 cellPadding=0 width=75 bgColor=#0000ff border=1> <TR> <TD width=10><B><IMG id=fpAnimswapImgFP1 height=200 width=200 lowsrc=/img/200406301.jpg border=0 name=fpAnimswapImgFP1 동적 애니메이션= "fpAnimswapImgFP1"></B></TD> <TD align=middle width=30>网页<BR>학</TD></TR> </TABLE> </DIV> <SCRIPT 언어=JavaScript> 자체. onError=null; 현재X = 현재Y = 0; whichIt = null; lastScrollX = 0; lastScrollY = 0; NS = (document.layers) ? 1:0; IE = (document.all) ? 1:0; <!-- 스토커 코드 --> function heartBeat() { if(IE) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; } if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; } if(diffY != lastScrollY) { 퍼센트 = .1 * (diffY - lastScrollY); if(퍼센트 > 0) 퍼센트 = Math.ceil(퍼센트); else 퍼센트 = Math.floor(퍼센트); if(IE) document.all.floater.style.pixelTop += 퍼센트; if(NS) document.floater.top += 퍼센트; lastScrollY = lastScrollY + 퍼센트; } if(diffX != lastScrollX) { 퍼센트 = .1 * (diffX - lastScrollX); if(퍼센트 > 0) 퍼센트 = Math.ceil(퍼센트); else 퍼센트 = Math.floor(퍼센트); if(IE) document.all.floater.style.pixelLeft += 퍼센트; if(NS) document.floater.left += 퍼센트; lastScrollX = lastScrollX + 퍼센트; } } <!-- /스토커 코드 --> <!-- 코드 드래그 --> function checkFocus(x,y) {talkerx = document.floater.pageX; 스토커리 = document.floater.pageY; 스토커폭 = document.floater.clip.width; 스토커 높이 = document.floater.clip.height; if( (x > 스토커x && x < (stalkerx+stalkerwidth)) && (y > 스토커리 && y < (stalkery+stalkerheight))) return true; 그렇지 않으면 false를 반환합니다. } 함수 GrabIt(e) { if(IE) { whichIt = event.srcElement; while (whichIt.id.indexOf("floater") == -1) { whichIt = whichIt.parentElement; if (whichIt == null) { 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; } } true를 반환합니다. } function moveIt(e) { if (whichIt == null) { return false; } if(IE) { newX = (event.clientX + document.body.scrollLeft); newY = (event.clientY + document.body.scrollTop); distanceX = (newX - 현재X); distanceY = (newY - 현재Y); 현재X = newX; 현재Y = 신규Y; whichIt.style.pixelLeft += 거리X; whichIt.style.pixelTop += 거리Y; if(whichIt.style.pixelTop < document.body.scrollTop) whichIt.style.pixelTop = document.body.scrollTop; if(whichIt.style.pixelLeft < document.body.scrollLeft) whichIt.style.pixelLeft = document.body.scrollLeft; if(whichIt.style.pixelLeft > document.body.offsetWidth - document.body.scrollLeft - whichIt.style.pixelWidth - 20) whichIt.style.pixelLeft = document.body.offsetWidth - whichIt.style.pixelWidth - 20; if(whichIt.style.pixelTop > document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5) whichIt.style.pixelTop = document.body.offsetHeight + document.body.scrollTop - whichIt.style. 픽셀 높이 - 5; event.returnValue = 거짓; } 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.left = ((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 ; 거짓을 반환; } 거짓을 반환; } //http://www.downcodes.com의 추가 자바스크립트 function dropIt() { whichIt = null; if(NS) window.releaseEvents (Event.MOUSEMOVE); 사실을 반환; } <!-- 드래그 드롭 코드 --> if(NS) { window.captureEvents(Event.MOUSEUP|Event.MOUSEDOWN); window.onmousedown=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> <br>이<br>이<br>이<br>이<br>이<br>이<br>이<br>이<br>이<br>이<br><br >이<br>이<br>이<br>이<br>이<br>이<br>이<br>이<br>이<br>이<br>이<br>이 <br>이<br>이<br>이<br>이<br>이<br>이<br>이<br>이<br>이<br>이<br>이<br >이<br>이<br>이<br>이<br>이<br>이<br>이<br>이<br>이<br>이<br>이 <br>이 <br>이<br>이<br>이<br>이<br>이<br>이<br>이<br>이<br>이<br>이<br>이<br >이<br>이<br>이<br>이<br>이<br>이<br>이<br>이<br>이<br>이<br>이 </BODY></HTML>