中文(繁体)
<!-- 把以下程式碼加入<body>區域 --> <!-- http://www.downcodes.com/js --> <!-- bbs http://www.downcodes.com/bbs --> <腳本語言=JavaScript> <!-- // BannerAD varbannerAD=new Array(); varbannerADlink=new Array(); var adNum=0; bannerAD[0]="/img/200406301.jpg"; bannerADlink[0]="/js"; bannerAD[1]="/img/200406302.jpg"; bannerADlink[1]="/js"; bannerAD[2]="/img/200406303.jpg"; bannerADlink[2]="/js"; bannerAD[3]="/img/200406304.jpg"; bannerADlink[3]="/js"; bannerAD[4]="/img/200406305.jpg"; bannerADlink[4]="/js"; var preloadedimages=new Array(); for (i=1;i<bannerAD.length;i++){ preloadedimages[i]=new Image(); preloadedimages[i].src=bannerAD[i]; } 函數 setTransition(){ if (document.all){bannerADrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23); bannerADrotator.filters.revealTrans.apply(); } } 函數 playTransition(){ if (document.all) BannerADrotator.filters.revealTrans.play() } 函數 nextAd(){ if(adNum<bannerAD.length-1)adNum++ ;否則 adNum=0;設定轉換(); document.images.bannerADrotator.src=bannerAD[adNum];播放轉換(); theTimer=setTimeout("nextAd()", 5000); } 函數jump2url(){ JumpUrl=bannerADlink[adNum]; JumpTarget='_blank'; if (jumpUrl != ''){ if (jumpTarget != '')window.open(jumpUrl,jumpTarget);否則 location.href=jumpUrl; } } 函數displayStatusMsg() { status=bannerADlink[adNum];文檔.returnValue = true; } //--> </script> <table border="0" cellspacing="6" cellpadding="1"> <tr> <td bgcolor="#FFFFFF"><A onmouseover="displayStatusMsg();return document.returnValue" href="javascript:jump2url()"><IMG style="FILTER: RevealTrans(duration=2,transition=20)" height=200 src="/img/200306301.jpg" width=150 border= 0 name=bannerADrotator></A> <SCRIPT language=JavaScript>nextAd()</SCRIPT></td> </tr> </table>