<!--对联广告开始--> <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.baidu.com' target='blank'><img src='http://danbao.test.cn/skin/images/002.jpg' width='170px' height='360px'></a></div>" document.write(j1); document.write(j2); window.setInterval("heartBeat()",1); </script> <!--对联广告结束--> <!--对联广告开始--> <style> .couplet_ad /* 底部固定*/{position:fixed;bottom:auto; top:0; width: 170px; height: 360px; z-index:99999; margin-top:200px;} * html .couplet_ad /* IE6 底部固定*/{_position:absolute; _bottom:auto; _top:expression(eval(document.documentElement.scrollTop));} .couplet_ad a{ display:block; cursor:pointer;} #ad_left{ left: 0px;} #ad_right{ right: 0px;} </style> <script language="javascript"> function ad_left(){ document.getElementById('ad_left').style.display="none"; } function ad_right(){ document.getElementById('ad_right').style.display="none"; } </script> <div class='couplet_ad' id='ad_right'> {ad(33)} <a onClick="ad_right();"><img src="http://filesimg.111cn.net/2013/12/18/20131218034510670.gif" /></a> </div> <div class='couplet_ad' id='ad_left'> {ad(32)} <a onClick="ad_left();"><img src="http://filesimg.111cn.net/2013/12/18/20131218034510670.gif" /></a> </div> <!--对联广告结束-->