演示:www.myhui.cn
使用方法很简单:
系统管理——广告管理——添加顶部广告——把代码粘贴进去——保存OK
<meta content=NO name=Generator>
<meta content="" name=Keywords>
<meta content="" name=Description>
<CENTER>
<SCRIPT type=text/javascript>
var intervalId = null;
function slideAd(id,nStayTime,sState,nMaxHth,nMinHth){
this.stayTime=nStayTime*1000 || 3000;
this.maxHeigth=nMaxHth || 288;
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 id=MyMoveAd style="BACKGROUND: #ffffff; OVERFLOW: hidden; HEIGHT: 88px"><a href="http://www.myhui.cn/about/about.html" target=_blank><img src="http://www.tuchuan.com/a/bannerehe.jpg" border=0></a> </div>
<SCRIPT type=text/javascript>
<!--
slideAd('MyMoveAd',5);
-->
</SCRIPT>
<table id=jueban style="BACKGROUND: #ffffff" cellSpacing=0 cellPadding=0 width="100%" border=0>
<tr>
<td><a href="http://www.jkbgg.com" target=_blank><img src="http://www.tuchuan.com/a/ad1.gif" border=0></a></td>
</tr>
</table>
</CENTER>
来源:http://bbs.jkbgg.com |