代码: <script language="JavaScript"> <!-- function loadBanner() { setTimer=setTimeout("changeBanner()",15000); listCode=0; newsPic=new Array(5); newsLoc=new Array(5); newsPic[0]="http://web.sysu.edu.cn/zdonline/pics/picnews-jwc050929_3.jpg"; newsLoc[0]="msgshow.php?bk=sys_bd_misc&newsid=4e26fae1075067bfbb58c251a5ce0ae0"; newsPic[1]="http://web.sysu.edu.cn/zdonline/pics/picnews-jwc050929_2.jpg"; newsLoc[1]="msgshow.php?bk=sys_bd_misc&newsid=9c46235465cf1c60e951333aacb48815"; newsPic[2]="http://web.sysu.edu.cn/zdonline/pics/picnews-jwc050929_1.jpg"; newsLoc[2]="msgshow.php?bk=sys_bd_misc&newsid=3337334e22cc3a47db5e07e5635cd6fa"; newsPic[3]="http://web.sysu.edu.cn/zdonline/pics/picnews-gy050927.jpg"; newsLoc[3]="msgshow.php?bk=sys_bd_misc&newsid=32017b6c4b0496fa708c281a9a1b0925"; newsPic[4]="http://web.sysu.edu.cn/zdonline/pics/picnews-njyyy23.jpg"; newsLoc[4]="msgshow.php?bk=sys_bd_misc&newsid=67ff1312c6761b5677d3d72741a3a756"; } function changeBanner() { listCode=listCode+1; if(listCode==5) {listCode=0;} bannerSrc=newsPic[listCode]; document.adBanner.src=bannerSrc; setTimer=setTimeout("changeBanner()",15000); } function changeLink() { self.location=newsLoc[listCode]; } //--> </script> <table width="100%" border="0" cellspacing="0" cellpadding="0" height="138"> <tr valign="top"> <td > <div id="Layer1" style="position:absolute; width:200px; height:115px; z-index:1"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="396" height="149"> <param name=movie value="http://web.sysu.edu.cn/zdonline/img3/top2.swf"> <param name=quality value=high> <param name=wmode value=transparent> <embed src="http://web.sysu.edu.cn/zdonline/img3/top2.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="396" height="149"> </embed> </object></div> <div id="Layer2" style="position:absolute; width:200px; height:115px; z-index:2"><a href="JavaScript:changeLink()"><img src="http://web.sysu.edu.cn/zdonline/img3/000.gif" width="396" height="149" border="0"></a></div> <img name="adBanner" src=http://web.sysu.edu.cn/zdonline/pics/picnews-jwc050929_3.jpg width="396" height="149" alt="动态广告图片"></td></tr></table> 为什么我在其他的地方调试,它不能显示图片的轮换啊? 从网站上拿下来的 不知道要怎么改才可以放到自己的叶子上用??
修改了一下,应该可以了。FF 下面有个无关紧要的问题,我还没看出来为什么,但是不影响功能吧。 代码: <script language="JavaScript"> <!-- var listCode; var newsPic; var newsLoc; function loadBanner() { listCode = 0; newsPic = new Array(5); newsLoc = new Array(5); newsPic[0]="http://cms.11k.net/images/newsite.gif"; newsLoc[0]="msgshow.php?bk=sys_bd_misc&newsid=4e26fae1075067bfbb58c251a5ce0ae0"; newsPic[1]="http://cms.11k.net/images/onlyidcjz.gif"; newsLoc[1]="msgshow.php?bk=sys_bd_misc&newsid=9c46235465cf1c60e951333aacb48815"; newsPic[2]="http://cms.11k.net/images/onlyidc.gif"; newsLoc[2]="msgshow.php?bk=sys_bd_misc&newsid=3337334e22cc3a47db5e07e5635cd6fa"; newsPic[3]="http://cms.11k.net/images/newsite.gif"; newsLoc[3]="msgshow.php?bk=sys_bd_misc&newsid=32017b6c4b0496fa708c281a9a1b0925"; newsPic[4]="http://cms.11k.net/images/onlyidcjz.gif"; newsLoc[4]="msgshow.php?bk=sys_bd_misc&newsid=67ff1312c6761b5677d3d72741a3a756"; setTimeout("changeBanner()", 15000); } function changeBanner() { listCode = listCode + 1; if (listCode == 5) { listCode = 0; } bannerSrc = newsPic[listCode]; document.getElementById("adBanner").src = bannerSrc; setTimeout("changeBanner()", 15000); } function changeLink() { self.location = newsLoc[listCode]; } //--> </script> <body onload="loadBanner();"> <table width="100%" border="0" cellspacing="0" cellpadding="0" height="138"> <tr valign="top"> <td > <img id="adBanner" src=http://cms.11k.net/images/onlyidc.gif width="396" height="149" alt="动态广告图片" onclick="changeLink();"></td></tr></table> </body>
你说的那些可能是利用了滤镜,很 MS 私有的玩意儿。 暂时没有做过这个,但是在 MSN 上可以找到相关的一些主题。 http://msdn.microsoft.com/workshop/author/filter/filters.asp (这个链接竟然让我找了好久——其实开始就已经呈现在我面前,老眼昏花了)