提示:您可以先修改部分代碼再運行
<p>js浮動對聯廣告代碼[支援flash]<meta content="text/html; charset=gb2312" http-equiv="Content-Type" />對聯廣告帶同時關閉的</p><script >//對聯廣告帶同時關閉的//左邊suspendcode13="<DIV id=LeftAda >";suspendcode13+="";suspendcode13+="";suspendcode13+="";suspendcode13+="關閉";suspendcode13+="</div>";//右邊suspendcode15="<DIV id=RightAda ><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='100' height='250' align='middle'><param name='movie' value='http://www.111cn.net/demo/js/111cn.net.swf' /><param name='wmode' value='transparent'><param name='quality' value='high' /><embed src='http://www.111cn.net/demo/js/111cn.net.swf' width='100' height='250' align='middle' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' wmode='transparent'></embed></object>關閉</div>";document.write(suspendcode13);document.write(suspendcode15);window.setInterval("heartBeatt()",1);lastScrollY=0;function heartBeatt() {var diffYy;if(document.documentElement && document.documentElement.scrollTop) {diffYy = document.documentElement.scrollTop;}else if (document.body) {diffYy = document.body.scrollTop;}else {/*Netscape stuff*/}//alert(diffYy);percent=.1*(diffYy-lastScrollY);if(percent>0) {percent=Math.ceil(percent);}else {percent=Math.floor(percent);}document.getElementById("LeftAda").style.top=parseInt(document.getElementById("LeftAda").style.top)+percent+"px";document.getElementById("RightAda").style.top=parseInt(document.getElementById("LeftAda").style.top)+percent+"px";lastScrollY=lastScrollY+percent;//alert(lastScrollY);}function ClosedivLeft1() {LeftAda.style.visibility="hidden";RightAda.style.visibility="hidden";}/*function ClosedivLeft2() {LeftAda.style.visibility="hidden";RightAda.style.visibility="hidden";}*/</script><p> </p>
提示:您可以先修改部分代碼再運行