Indonesia
<GAYA ketik=teks/css>#floater { Z-INDEX: 10; KIRI: 500 piksel; VISIBILITAS: terlihat; LEBAR: 125 piksel; POSISI: mutlak; ATAS: 146px } </STYLE> <STYLE type=text/css> TD { UKURAN FONT: 9pt; TINGGI GARIS: 11pt } </STYLE> </HEAD> <BODY > <DIV id=floater style="LEFT: 0px; WIDTH: 89px; TOP: 137px; HEIGHT: 40px"> <TABEL cellSpacing=0 cellPadding=0 lebar=75 bgColor=#0000ff perbatasan=1> <TR> <TD lebar=10><B><IMG id=fpAnimswapImgFP1 tinggi=200 lebar=200 lowsrc=/img/200406301.jpg perbatasan=0 nama=fpAnimswapImgFP1 dinamisanimasi= "fpAnimswapImgFP1"></B></TD> <TD align=middle width=30>网页<BR>教学</TD></TR> </TABLE> </DIV> <SCRIPT Language=JavaScript> sendiri. onError=null; arusX = arusY = 0; yang mana = null; gulir terakhirX = 0; Gulir terakhirY = 0; NS = (dokumen.lapisan) ? 1 : 0; IE = (dokumen.semua) ? 1: 0; <!-- KODE STALKER --> function heartBeat() { if(IE) { diffY = document.body.scrollTop; diffX = dokumen.body.scrollLeft; } if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; } if(diffY != lastScrollY) { persen = .1 * (diffY - lastScrollY); if(persen > 0) persen = Math.ceil(persen); else persen = Math.floor(persen); if(IE) document.all.floater.style.pixelTop += persen; if(NS) document.floater.top += persen; lastScrollY = lastScrollY + persen; } if(diffX != lastScrollX) { persen = .1 * (diffX - lastScrollX); if(persen > 0) persen = Math.ceil(persen); else persen = Math.floor(persen); if(IE) document.all.floater.style.pixelLeft += persen; if(NS) document.floater.left += persen; lastScrollX = lastScrollX + persen; } } <!-- /KODE STALKER --> <!-- DRAG DROP CODE --> function checkFocus(x,y) {stalkerx = document.floater.pageX; penguntit = dokumen.floater.pageY; stackerwidth = dokumen.floater.clip.width; tinggi penguntit = dokumen.floater.clip.height; if( (x > penguntitx && x < (penguntitx+lebar penguntit)) && (y > penguntit && y < (penguntit+tinggi penguntit))) mengembalikan nilai true; jika tidak, kembalikan salah; } fungsi ambilIt(e) { if(IE) { yang mana = event.srcElement; while (whichIt.id.indexOf("floater") == -1) { yang mana = yang mana.parentElement; if (yang mana == null) { kembali benar; } } yangItu.gaya.pixelLeft = yangItu.offsetLeft; yang mana.gaya.pixelTop = yang mana.offsetTop; currentX = (event.clientX + dokumen.body.scrollLeft); currentY = (event.clientY + dokumen.body.scrollTop); } else { window.captureEvents(Event.MOUSEMOVE); if(checkFocus (e.pageX,e.pageY)) { yang mana = document.floater; StalkerTouchedX = e.pageX-document.floater.pageX; StalkerTouchedY = e.pageY-document.floater.pageY; } } mengembalikan nilai benar; } fungsi moveIt(e) { if (whichIt == null) { return false; } if(IE) { newX = (event.clientX + document.body.scrollLeft); newY = (event.clientY + dokumen.body.scrollTop); jarakX = (baruX - saat iniX); jarakY = (baruY - saat iniY); currentX = newX; saat iniY = baruY; yangIt.style.pixelLeft += distanceX; yang manaIt.style.pixelTop += jarakY; if(whichIt.style.pixelTop < document.body.scrollTop) yangIt.style.pixelTop = document.body.scrollTop; if(whichIt.style.pixelLeft < document.body.scrollLeft) yangIt.style.pixelLeft = document.body.scrollLeft; if(whichIt.style.pixelLeft > document.body.offsetWidth - document.body.scrollLeft - yangIt.style.pixelWidth - 20) yangIt.style.pixelLeft = document.body.offsetWidth - yangIt.style.pixelWidth - 20; if(whichIt.style.pixelTop > document.body.offsetHeight + document.body.scrollTop - yangIt.style.pixelHeight - 5) yangIt.style.pixelTop = document.body.offsetHeight + document.body.scrollTop - yangIt.style. pikselTinggi - 5; acara.returnValue = false; } else { yang mana.moveTo(e.pageX-StalkerTouchedX,e.pageY-StalkerTouchedY); if(whichIt.left < 0+self.pageXOffset) yangIt.left = 0+self.pageXOffset; if(whichIt.top < 0+self.pageYOffset) yangIt.top = 0+self.pageYOffset; if( (whichIt.left + yangIt.clip.width) >= (window.innerWidth+self.pageXOffset-17)) yangIt.left = ((window.innerWidth+self.pageXOffset)-whichIt.clip.width)-17 ; if( (whichIt.top + yang.clip.height) >= (window.innerHeight+self.pageYOffset-17)) yangIt.top = ((window.innerHeight+self.pageYOffset)-whichIt.clip.height)-17 ; kembali salah; } kembali salah; } //lebih banyak javascript dari http://www.downcodes.com function dropIt() { yang mana = null; if(NS) window.releaseEvents (Event.MOUSEMOVE); kembali benar; } <!-- DRAG DROP CODE --> if(NS) { window.captureEvents(Event.MOUSEUP|Event.MOUSEDOWN); window.onmousedown = ambilIt; window.onmousemove = pindahkan; window.onmouseup = dropIt; } if(IE) { document.onmousedown = ambilIt; dokumen.onmousemove = moveIt; dokumen.onmouseup = dropIt; } if(NS || YAITU) tindakan = window.setInterval("heartBeat()",1); </SCRIPT> <br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br >e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e <br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br >e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e <br>e <br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br >e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e<br>e </BODY></HTML>