BLOG顶部放了一个收缩代码,不知怎么回事,那段代码有时不能关闭,高手们帮忙解决一下!谢谢先了!
      代码如下:
<html>
<head>
<script language="javascript">
function checktopAds()
{  
 
   return true; 
}

function do_it()
{
  if ( checktopAds() )
  {
  var anim = function()
    {
      n += 5;
        if(n >= 45){
        document.getElementById('topAds_chk_show').style.marginTop = "0";
        window.clearInterval(t1);
        }else{
        document.getElementById('topAds_chk_show').style.marginTop = "-"+(45 - n)+"px";
        }
      },n=0;
      var t1 = window.setInterval(anim,80);
    }
}

function close_chk_show()
{

  var anim = function()
  {
    n += 5;
    if(n >= 45){
    document.getElementById('topAds_chk_show').style.marginTop = "-45px";
    window.clearInterval(t1);
    }else{
    document.getElementById('topAds_chk_show').style.marginTop = "-"+ n +"px";
    }
  },n=0;

    var t1 = window.setInterval(anim,80);
}
</script>
</head>
<body>
<div id="topAds_chk_show" style="margin-top:0px; margin-bottom:0px; width:770px; display:block;">
<a href="
http://www.xproxy.cn" target="_blank"><img src="images/xproxy.gif" width="652" height="45" border="0" /></a><a href="javascript:close_chk_show();"><img src="images/gbi.gif" width="118" height="45" border="0" alt="关闭" /></a>
</div>
</body>
<html>

  • 中查看更多“BLOG顶部放了一个收缩代码”相关内容
  • 中查看更多“BLOG顶部放了一个收缩代码”相关内容
  • 中查看更多“BLOG顶部放了一个收缩代码”相关内容
  • 中查看更多“BLOG顶部放了一个收缩代码”相关内容
  • 中查看更多“BLOG顶部放了一个收缩代码”相关内容
  • 中查看更多“BLOG顶部放了一个收缩代码”相关内容
  • Tags: ,
    网页代码 | 评论(0) | 引用(0) | 阅读(1780)
    发表评论
    表情
    emotemotemotemot
    emotemotemotemot
    emotemotemotemot
    emotemotemotemot
    emotemotemotemot
    emotemotemotemot
    打开HTML
    打开UBB
    打开表情
    隐藏
    记住我
    昵称   密码   游客无需密码
    网址   电邮   [注册]