返回列表 发帖

[Code] 右下角弹出广告窗口代码(兼容IE6)

<!--右下角广告开始-->
<style type="text/css">
#winpop { width:224px; height:0px; position:fixed; right:0; bottom:0; _position: absolute; _top:expression(eval(document.compatmode &amp;&amp; document.compatmode=='css1compat') ? documentelement.scrolltop +(documentelement.clientheight-this.clientheight) -1 : document.body.scrolltop +(document.body.clientheight-this.clientheight) -1); border:1px solid #999999; margin:0; padding:1px; overflow:hidden; display:none; background:#ffffff}
#winpop .title { width:100%; height:20px; line-height:20px; background:#6699cc; font-weight:bold; text-align:center; font-size:12px; color:#ffffff; }
#winpop .con { width:100%; height:196px; line-height:196px; font-weight:bold; font-size:12px; color:#ff0000; text-decoration:underline; text-align:center}
.close { position:absolute; right:4px; top:-1px; color:#ffffff; cursor:pointer}
.body {background-image:url(about:blank);background-attachment:fixed;}
</style>
<script type="text/javascript">
function tips_pop(){
  var msgpop=document.getelementbyid("winpop");
  var poph=parseint(msgpop.style.height);
   if (poph==0){
   msgpop.style.display="block";
  show=setinterval("changeh('up')",2);
   }
  else {
   hide=setinterval("changeh('down')",2);
  }
}
function changeh(str) {
var msgpop=document.getelementbyid("winpop");
var poph=parseint(msgpop.style.height);
if(str=="up"){
  if (poph<=214){
  msgpop.style.height=(poph+4).tostring()+"px";
  }
  else{   
  clearinterval(show);
  }
}
if(str=="down"){
  if (poph>=4){
  msgpop.style.height=(poph-4).tostring()+"px";
  }
  else{
  clearinterval(hide);
  msgpop.style.display="none";
  }
}
}
window.onload=function(){
document.getelementbyid('winpop').style.height='0px';
settimeout("tips_pop()",800);
}
</script>
  
<body id="body" leftmargin="0" topmargin="0" bgcolor="#000000">
<div id="winpop">
<div class="title">4sf公告<span class="close">x</span></div>
    <div class="con"><a href="http://www.sfsfsfsf.com/about.asp?id=49" target="_blank">
<img src='http://www.sfsfsfsf.com/danbao.jpg' border=0 width=224 height=196></a></div>
</div>
</body>
<!--右下角广告结束-->
欢迎光临:逐梦论坛

好贴阿楼主,代表大家谢谢您

TOP

佩服,佩服!

TOP

好贴阿楼主,代表大家谢谢您

TOP

大家顶啊,这么好的帖子,楼主辛苦了

TOP

真是好东西,顶啊!

TOP

顶一下吧~ 很少见的好帖了

TOP

好啊~~~~~~

TOP

支持一下!!呵呵

TOP

此帖必火!

TOP

返回列表

Powered by Discuz! 7.2   论坛QQ群:逐梦论坛群

© 2001-2021 Comsenz Inc. 鲁公网安备 37120302000001号