大家好第一次发贴..演示可以看.http://www.51juhui.com
是仿酒吧网首页的资讯.http://www.jiuba.com
- <CENTER>
- <SCRIPT type=text/javascript>
- var intervalId = null;
- function slideAd(id,nStayTime,sState,nMaxHth,nMinHth){
- this.stayTime=nStayTime*1000 || 3000;
- this.maxHeigth=nMaxHth || 207; //207是flash的高
- 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">
- <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="820" height="207">//820是宽 207是高
- <param name="movie" value="http://www.jiuba.com/dp/gq60.swf"> //http://www.jiuba.com/dp/gq60.swf 是你的flash地址或
- <param name="quality" value="high">
- <embed src="http://www.jiuba.com/dp/" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="820" height="207"></embed>//820是宽 207是高
- </object></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="link.php?url=http://www.jiuba.com/dp/" target=_blank><img src="http://www.jiuba.com/dp/820.jpg" border=0></a></td>欢迎加盟城市酒吧网联盟
- </tr>
- </table>
- </CENTER>
- 将以上代码直接放进就可以了.广告位就可以了.
复制代码 大家直接把代码放入UCH后台脚脚广告就可以了.
这条代码是自动更新节日的.是我从他们站里发现的. |