本帖最后由 panzf 于 2009-9-19 06:16 编辑
什么都不说先看图~~
插入代码就可以了~~哦,对了`还要把地址改好~
- <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 || 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://你的地址/国庆.swf"> //http://你的地址/国庆.swf 是你的flash地址或
- <param name="quality" value="high">
- <embed src="http://你的地址/" 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://你的地址/" target=_blank><img src="http://你的地址/820.jpg" border=0></a></td>//http://你的地址/820.jpg 是你的图片地址
- </tr>
- </table>
- </CENTER>
复制代码 附件里面给的是一个SWF动画``还有一张JPG图片
居然还有人不知道放哪里的~~算了·就继续说吧·可以放在头部广告里·还有你喜欢放哪里就放那里~代码改好我说的,贴哪里都有效果的~~
|