日本語
<!-- 如下代码追加<body> 領域中 --> <!-- http://www.downcodes.com/js --> <!-- bbs http://www.downcodes.com/bbs --> <script language=JavaScript> <!-- // BannerAD var BannerAD=new Array(); var BannerADlink=新しい配列(); var adNum=0;バナーAD[0]="/img/200406301.jpg";バナーADlink[0]="/js";バナーAD[1]="/img/200406302.jpg";バナーADlink[1]="/js";バナーAD[2]="/img/200406303.jpg";バナーADlink[2]="/js";バナーAD[3]="/img/200406304.jpg";バナーADlink[3]="/js";バナーAD[4]="/img/200406305.jpg";バナーADlink[4]="/js"; var preloadedimages=new Array(); for (i=1;i<bannerAD.length;i++){ preloadedimages[i]=new Image(); preloadedimages[i].src=bannerAD[i]; } function setTransition(){ if (document.all){ BannerADrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23); BannerADrotator.filters.revealTrans.apply(); } } function playTransition(){ if (document.all) BannerADrotator.filters.revealTrans.play() } function nextAd(){ if(adNum<bannerAD.length-1)adNum++ ;それ以外の場合は adNum=0; setTransition(); document.images.bannerADrotator.src=bannerAD[adNum]; playTransition(); theTimer=setTimeout("nextAd()", 5000);関数jump2url(){jumpUrl=bannerADlink[adNum]; JumpTarget='_blank'; if (jumpUrl != ''){ if (jumpTarget != '')window.open(jumpUrl,jumpTarget);それ以外の場合は location.href=jumpUrl;関数displayStatusMsg() {ステータス=bannerADlink[adNum]; document.returnValue = true; } //--> </script> <table border="0" cellpacing="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>