//html2js转换脚本@2007-7-30 2:08:02  
document.writeln("<script language=JavaScript> ");
document.writeln("<!-- \/\/ BannerAD ,图片切换");
document.writeln("var bannerAD=new Array(); ");
document.writeln("var bannerADlink=new Array(); ");
document.writeln("var adNum=0; ");
document.writeln("   bannerAD[0]=\"\/images\/720x100-0.jpg\";");
document.writeln("   bannerADlink[0]=\"http:\/\/www.okman.cn\/photo\";");
document.writeln("   bannerAD[1]=\"\/images\/720x100-1.jpg\";");
document.writeln("   bannerADlink[1]=\"http:\/\/www.okman.cn\/photo\";");
document.writeln("   bannerAD[2]=\"\/images\/720x100-2.jpg\";");
document.writeln("   bannerADlink[2]=\"http:\/\/www.okman.cn\/photo\";");
document.writeln("   bannerAD[3]=\"\/images\/720x100-3.jpg\";");
document.writeln("   bannerADlink[3]=\"http:\/\/www.okman.cn\/photo\";");
document.writeln("   bannerAD[4]=\"\/images\/720x100-4.jpg\";");
document.writeln("   bannerADlink[4]=\"http:\/\/www.okman.cn\/photo\";");
document.writeln("   bannerAD[5]=\"\/images\/720x100-5.jpg\";");
document.writeln("   bannerADlink[5]=\"http:\/\/www.okman.cn\/photo\";");
document.writeln("   bannerAD[6]=\"\/images\/720x100-6.jpg\";");
document.writeln("   bannerADlink[6]=\"http:\/\/www.okman.cn\/photo\";");
document.writeln("   bannerAD[7]=\"\/images\/720x100-7.jpg\";");
document.writeln("   bannerADlink[7]=\"http:\/\/www.okman.cn\/photo\";");
document.writeln("   bannerAD[8]=\"\/images\/720x100-8.jpg\";");
document.writeln("   bannerADlink[8]=\"http:\/\/www.okman.cn\/photo\";");
document.writeln("var preloadedimages=new Array(); ");
document.writeln("for (i=1;i<bannerAD.length;i++){ ");
document.writeln("preloadedimages[i]=new Image(); ");
document.writeln("preloadedimages[i].src=bannerAD[i]; ");
document.writeln("} ");
document.writeln("function setTransition(){ ");
document.writeln("if (document.all){ ");
document.writeln("bannerADrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23); ");
document.writeln("bannerADrotator.filters.revealTrans.apply(); ");
document.writeln("} ");
document.writeln("} ");
document.writeln("function playTransition(){ ");
document.writeln("if (document.all) ");
document.writeln("bannerADrotator.filters.revealTrans.play() ");
document.writeln("} ");
document.writeln("function nextAd(){ ");
document.writeln("if(adNum<bannerAD.length-1)adNum++ ; ");
document.writeln("else adNum=0; ");
document.writeln("setTransition(); ");
document.writeln("document.images.bannerADrotator.src=bannerAD[adNum]; ");
document.writeln("playTransition(); ");
document.writeln("theTimer=setTimeout(\"nextAd()\", 5000); ");
document.writeln("} ");
document.writeln("function jump2url(){ ");
document.writeln("jumpUrl=bannerADlink[adNum]; ");
document.writeln("jumpTarget='_blank'; ");
document.writeln("if (jumpUrl != ''){ ");
document.writeln("if (jumpTarget != '')window.open(jumpUrl,jumpTarget); ");
document.writeln("else location.href=jumpUrl; ");
document.writeln("} ");
document.writeln("} ");
document.writeln("function displayStatusMsg() { ");
document.writeln("status=bannerADlink[adNum]; ");
document.writeln("document.returnValue = true; ");
document.writeln("} ");
document.writeln("\/\/--> ");
document.writeln("<\/script>");
document.writeln("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("  <tr> ");
document.writeln("    <td bgcolor=\"#000000\"><A onmouseover=\"displayStatusMsg();return document.returnValue\" href=\"javascript:jump2url()\"><IMG style=\"FILTER: revealTrans(duration=2,transition=20)\" height=97 src=\"\/images\/720x100-0.jpg\" width=720 border=0 name=bannerADrotator><\/A>");
document.writeln("    <SCRIPT language=JavaScript>nextAd()<\/SCRIPT><\/td>");
document.writeln("  <\/tr>");
document.writeln("<\/table>");

