网页右下角漂浮广告代码[随浏览器滚动]支持IE FF
<div id="test" style="width:280px; height:200px;position:absolute;right:0;"> <div style="position:relative"> <div style="position:absolute; right:3px; top:3px; font-size:14px; cursor:pointer;" onclick="document.getElementById('test').style.display='none'"><img src="http://bbs.haixia.com/images/closec.jpg" /></div> <div style="position:absolute; left: 95px; top: 140px; d"><a href=http://bbs.haixia.com><img src="http://bbs.haixia.com/images/registi.jpg" border="0" /></a></div> <img src="http://bbs.haixia.com/images/re_bg.jpg" /> </div> </div> <script> function close(){ document.getElementById("test").style.display="none"; } window.onload = function showAds() { setTimeout("close()",5000); //停留时间自己适当调整 } </script> <script language="JavaScript" type="text/javascript"> function rightBottomAd(){ var abc = document.getElementById("test"); abc.style.top = document.documentElement.scrollTop+document.documentElement.clientHeight-200+"px"; setTimeout(function(){rightBottomAd();},50); } rightBottomAd(); </script>