怎么只然他 在首页显示啊 为什么自动收缩的代码 每页都显示啊
那里加入了代码: 弄出来效果挺好的 可是 点其他页面 其他文章 那个收缩 图片 就自动 打开了
怎么然他 只在首页显示 其他页面不显示呢
——————————————————————————————————————————————
http://www.059it.com/Learn/200903/336.html (这个是那个代码地址) Js特效:顶部自动收缩滑动门广告代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" c />
<meta http-equiv="Content-Type" c />
<meta name="Keywords" c />
<meta name="Description" c />
<title>JS特效:顶部自动收缩滑动门广告代码--捷扬网络059it.com</title>
</head>
<body>
<script type="text/javascript">
var intervalId = null;
function slideAd(id,nStayTime,sState,nMaxHth,nMinHth){
this.stayTime=nStayTime*1000 || 3000;
this.maxHeigth=nMaxHth || 330;
this.minHeigth=nMinHth || 2.5;
this.state=sState || "down" ;
var obj = document.getElementById(id);
if(intervalId != null)window.clearInterval(intervalId);
function openBox(){
var h = obj.offsetHeight;
obj.style.height = ((this.state == "down") ? (h + 2) : (h - 2))+"px";
if(obj.offsetHeight>this.maxHeigth){
window.clearInterval(intervalId);
intervalId=window.setInterval(closeBox,this.stayTime);
}
if (obj.offsetHeight<this.minHeigth){
window.clearInterval(intervalId);
obj.style.display="none";
}
}
function closeBox(){
slideAd(id,this.stayTime,"up",nMaxHth,nMinHth);
}
intervalId = window.setInterval(openBox,30);
}
</script>
<div class="pagemain"><div id="MyMoveAd" style="background
ffffff;height:12px;overflow:hidden;"><a href="
http://www.0596bc.com" target="_blank" title="漳州博才网"><img src="
http://www.0596bc.com/Adpic/2.jpg" border="0" /></a></div></div>
<script type="text/javascript">
<!--
slideAd('MyMoveAd',5);
-->
</script>
<div class="pagemain"><table width="980px" border="0" cellspacing="0" cellpadding="0" id="jueban" style="background:;display: ">
<tr><td align="center"><a href="
http://www.0596bc.com" target="_blank" title="漳州博才网"><img src="
http://www.0596bc.com/Adpic/3.jpg" border="0"></a></td></tr></table></div>
</body>
</html>