中文(简体)
<!-- 将以下代码放到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>