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顶部放了一个收缩代码”相关内容
CN域名备案成功
又加了一个代码

2007/03/28 23:59 | by 


