中文(繁体)
<!-- 將以下程式碼放到body區域內--> <script language="JavaScript"> self.onError = null;當前X = 當前Y = 0;它 = null;最後捲動X = 0;最後捲動Y = 0; NS = (文件.層) ? 1:0; IE = (文檔.全部) ? 1:0; <!-- STALKER 程式碼 --> function heartBeat(objectid) { 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(百分比);否則百分比 = Math.floor(百分比); if(IE) { objectid = objectid.split(";"); for (i = 0; i < objectid.length; i++) eval("document.all."+objectid[i]).style.pixelTop += 百分比; } if(NS) { objectid = objectid.split(";"); for (i = 0; i < objectid.length; i++) eval("document."+objectid[i]).top += 百分比; } 最後滾動Y = 最後滾動Y + 百分比; } if(diffX != lastScrollX) { 百分比 = .1 * (diffX - lastScrollX); if(百分比 > 0) 百分比 = Math.ceil(百分比);否則百分比 = Math.floor(百分比); if(IE) { objectid = objectid.split(";"); for (i = 0; i < objectid.length; i++) eval("document.all."+objectid[i]).style.pixelLeft += 百分比; } if(NS) { objectid = objectid.split(";"); for (i = 0; i < objectid.length; i++) eval("document."+objectid[i]).left +=百分比; } 最後捲動X = 最後捲動X + 百分比; } } <!-- /STALKER 程式碼 --> if(NS || IE) action = window.setInterval("heartBeat('floater;floater1;floater2;floater3')", 5); if (IE){ document.write("<DIV id='floater' style='LEFT: 5px; TOP: 310px; 位置: 絕對; WIDTH: 83; VISIBILITY: 可見; Z-INDEX: 10;'><a href='http://www.downcodes.com' target='_blank'><IMG src='' height='100' width='100' border='0'></a></DIV>" ) document.write("<DIV id='floater1' style='LEFT: 5px; TOP: 420px; POSITION: 絕對; WIDTH: 83; VISIBILITY: 可見; Z-INDEX: 10;'><a href='http ://www.downcodes.com' target='_blank'><IMG src='' height='80' width='80' border='0'></a></DIV>") document.write ("<DIV id='floater2' style='right: 5px; TOP: 310px; POSITION: 絕對; WIDTH: 83; VISIBILITY: 可見; Z-INDEX: 10;'><a href='http://bbs .downcodes.com/' target='_blank'><IMG src='' height='100' width='100' border='0'></a></DIV>") //document.write( "<DIV id='floater3' style='right: 5px; TOP: 420px; POSITION: 絕對; WIDTH: 83; VISIBILITY: 可見; Z-INDEX: 10;'><a href='http://www. downcodes.com/' target='_blank'><IMG src='' height='80' width='80' border='0'></a></DIV>") document.write("<DIV id='floater3' style='right: 5px;頂部:420 像素;位置:絕對;寬度:83;可見性:可見; Z-INDEX: 10;'><a href='http://www.downcodes.com' target='_blank'><IMG src='' height='80' width='80' border='0' ></a></DIV>") } if (NS){ document.write("<layer id=myleft top=400 width=80 height=80></layer>"); } </script>