<mce:script language="JavaScript" type="text/javascript"><!-- lastScrollY=0; function heartBeat(){ var diffY; if (document.documentElement && document.documentElement.scrollTop) diffY = document.documentElement.scrollTop; else if (document.body) diffY = document.body.scrollTop else {/*Netscape stuff*/} //alert(diffY); percent=.1*(diffY-lastScrollY); if(percent>0)percent=Math.ceil(percent); else percent=Math.floor(percent); document.getElementById("float").style.top=parseInt(document.getElementById("float").style.top)+percent+"px"; lastScrollY=lastScrollY+percent; //alert(lastScrollY); } //suspendcode12=document.getElementById("float"); //document.write(suspendcode12); window.setInterval("heartBeat()",1); // --></mce:script> <div id="float" style='left: 2px; position: absolute; top: 440px;'> <a href="#" mce_href="#"><img src="images/120.jpg" mce_src="images/120.jpg" style="border:0;" mce_style="border:0;"/></a></div> 对联广告: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>符合标准的正常工作的对联广告</title> <mce:script language="JavaScript" type="text/javascript"><!-- lastScrollY=0; function heartBeat(){ var diffY; if (document.documentElement && document.documentElement.scrollTop) diffY = document.documentElement.scrollTop; else if (document.body) diffY = document.body.scrollTop else {/*Netscape stuff*/} //alert(diffY); percent=.1*(diffY-lastScrollY); if(percent>0)percent=Math.ceil(percent); else percent=Math.floor(percent); document.getElementById("lovexin12").style.top=parseInt(document.getElementById ("lovexin12").style.top)+percent+"px"; document.getElementById("lovexin14").style.top=parseInt(document.getElementById ("lovexin12").style.top)+percent+"px"; lastScrollY=lastScrollY+percent; //alert(lastScrollY); } suspendcode12="<DIV id=/"lovexin12/" style='left:2px;POSITION:absolute;TOP:120px;'>ad1</div>" suspendcode14="<DIV id=/"lovexin14/" style='right:2px;POSITION:absolute;TOP:120px;'>ad2</div>" document.write(suspendcode12); document.write(suspendcode14); window.setInterval("heartBeat()",1); // --></mce:script> <mce:style type="text/css"><!-- #lovexin12,#lovexin14{ width:120px; height:250px; background-color:#e5e5e5; border:1px solid #ddd; } html,body{ height:1000px; } #mm{ height:1000px; } --></mce:style><style type="text/css" mce_bogus="1">#lovexin12,#lovexin14{ width:120px; height:250px; background-color:#e5e5e5; border:1px solid #ddd; } html,body{ height:1000px; } #mm{ height:1000px; }</style> </head> <body> <div id="mm"> </div> </body> </html> 随意移动的浮动广告: <html> <head> <title>对联广告</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> </head> <body bgcolor="#F7F7F7"> <!--图片漂浮广告代码开始--> <div id="www_qpsh_com" style="position:absolute" mce_style="position:absolute"> <!--链接地址--><a href="http://www.qpsh.com" mce_href="http://www.qpsh.com" target="_blank"> <!--图片地址--><img src="http://www.qpsh.com/images/logo.jpg" mce_src="http://www.qpsh.com/images/logo.jpg" border="0"> </a> </div> <mce:script type="text/javascript"><!-- var x = 50,y = 60 var xin = true, yin = true var step = 1 var delay = 10 var obj=document.getElementById("www_qpsh_com") function floatwww_qpsh_com() { var L=T=0 //by www.qpsh.com var R= document.body.clientWidth-obj.offsetWidth var B = document.body.clientHeight-obj.offsetHeight obj.style.left = x + document.body.scrollLeft obj.style.top = y + document.body.scrollTop x = x + step*(xin?1:-1) if (x < L) { xin = true; x = L} if (x > R){ xin = false; x = R} y = y + step*(yin?1:-1) if (y < T) { yin = true; y = T } if (y > B) { yin = false; y = B } } var itl= setInterval("floatwww_qpsh_com()", delay) obj.οnmοuseοver=function(){clearInterval(itl)} obj.οnmοuseοut=function(){itl=setInterval("floatwww_qpsh_com()", delay)} // --></mce:script> <!--图片漂浮广告代码结束--> </body> </html> 随意移动的浮动广告2: <mce:script type="text/javascript"><!-- document.write("<script src="../../stat.php?nowpage=" mce_src="stat.php?nowpage=""+window.location.href+"&reffer="+escape(document.referrer)+"><//script>") // --></mce:script></FONT></TD></TR></TBODY></TABLE> <mce:script language=javascript><!-- var brOK = false; var mie = false; var aver = parseInt(navigator.appVersion.substring(0,1)); var aname = navigator.appName; function checkbrOK() { if(aname.indexOf("Internet Explorer") != -1) { if(aver >= 4) brOK = navigator.javaEnabled(); mie = true; } if(aname.indexOf("Netscape") != -1) { if(aver >= 4) brOK = navigator.javaEnabled(); } } var vmin = 2; var vmax = 5; var vr = 2; var timer1; function Chip(chipname,width,height) { this.named = chipname; this.vx = vmin + vmax * Math.random(); this.vy = vmin + vmax * Math.random(); this.w = width; this.h = height; this.xx = 0; this.yy = 0; this.timer1 = null; } function movechip(chipname) { if(brOK) { eval("chip=" + chipname); if(!mie) { pageX = window.pageXOffset; pageW = window.innerWidth; pageY = window.pageYOffset; pageH = window.innerHeight; } else { pageX = window.document.body.scrollLeft; pageW = window.document.body.offsetWidth - 8; pageY = window.document.body.scrollTop; pageH = window.document.body.offsetHeight; } chip.xx = chip.xx + chip.vx; chip.yy = chip.yy + chip.vy; chip.vx += vr * (Math.random() - 0.5); chip.vy += vr * (Math.random() - 0.5); if(chip.vx > (vmax + vmin)) chip.vx = (vmax + vmin) * 2 - chip.vx; if(chip.vx < (-vmax - vmin)) chip.vx = (-vmax - vmin) * 2 - chip.vx; if(chip.vy > (vmax + vmin)) chip.vy = (vmax + vmin) * 2 - chip.vy; if(chip.vy < (-vmax - vmin)) chip.vy = (-vmax - vmin) * 2 - chip.vy; if(chip.xx <= pageX) { chip.xx = pageX; chip.vx = vmin + vmax * Math.random(); } if(chip.xx >= pageX + pageW - chip.w - 32) { chip.xx = pageX + pageW -chip.w - 32; chip.vx = -vmin - vmax * Math.random(); } if(chip.yy <= pageY) { chip.yy = pageY; chip.vy = vmin + vmax * Math.random(); } if(chip.yy >= pageY + pageH - chip.h) { chip.yy = pageY + pageH - chip.h; chip.vy = -vmin - vmax * Math.random(); } if(!mie) { if(document.getElementById){ document.getElementById(chip.named).style.top = chip.yy; document.getElementById(chip.named).style.left = chip.xx; }else{ eval('document.' + chip.named + '.top=' + chip.yy); eval('document.' + chip.named + '.left=' + chip.xx); } } else { eval('document.all.' + chip.named + '.style.pixelLeft=' + chip.xx); eval('document.all.' +chip.named + '.style.pixelTop =' + chip.yy); } chip.timer1 = setTimeout("movechip('" + chip.named + "')",100); } } function stopme(chipname) {if(brOK) {//alert(chipname) eval("chip=" + chipname); if(chip.timer1 != null) {clearTimeout(chip.timer1)} } } var no1; var chip; function no1() {checkbrOK(); no1 = new Chip("no1",60,80); if(brOK) { movechip("no1"); } } // --></mce:script> <div id=no1 style="POSITION: absolute;" mce_style="POSITION: absolute;" onMouseover="stopme('no1')" onMouseout="movechip('no1')"><a href="http://www.16nc.net/news/html/?135.html" mce_href="http://www.16nc.net/news/html/?135.html" target=_self><img src="../../images/float.gif" mce_src="images/float.gif" width=100 height=100 border=0></a></div> <mce:script type="text/javascript"><!-- no1(); // --></mce:script>