可单独关闭对联广告两枚
<!--对联广告开始--> <style type="text/css"> html,body{ height:1000px; } #zzjs_net_1,#zzjs_net_2{ width:170px; height:360px; background-color:#eee; border:1px solid #ddd; } #www_zzjs_net{ height:1000px; } </style> <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("zzjs_net_1").style.top=parseInt(document.getElementById ("zzjs_net_1").style.top)+percent+"px"; document.getElementById("zzjs_net_2").style.top=parseInt(document.getElementById ("zzjs_net_1").style.top)+percent+"px"; lastScrollY=lastScrollY+percent; //alert(lastScrollY); } j1="<div id=\"zzjs_net_1\" style='left:2px;position:absolute;top:120px;'><span style='display:inline-block;float:right;cursor:pointer' onclick='this.parentNode.style.display=\"none\"'>关闭</span><a href='http://www.baidu.com' target='blank'><img src='http://danbao.test.cn/skin/images/002.jpg' width='170px' height='360px'></a></div>" j2="<div id=\"zzjs_net_2\" style='right:2px;position:absolute;top:120px;'><span style='display:inline-block;float:right;cursor:pointer' onclick='this.parentNode.style.display=\"none\"'>关闭</span><a href='http://www....