中文(简体)
<!-- 把如下代码加入<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>