<div class="codetitle"> <span><a style="CURSOR: pointer" data="64435" class="copybut" id="copybut64435" onclick="doCopy('code64435')"><u>复制代</u></a></span>代码如下:</div> <div class="codebody" id="code64435"> <br><A <BR>onclick=checkopen(this); <BR>href="http://www.jb51.net" <BR>target=_blank>打开下載页面1</A> <br> <br><!-- <BR>varoriginal_url = "" <BR>var adurl = new Array(9); <BR>var isclick = false; <BR>var adurl_i = 5; <BR>adurl[0] = "http://www.jb51.net"; <BR>adurl[1] = "http://www.yuanma51.com/"; <BR>adurl[2] = "http://www.baidu.com/"; <br><br><BR>function selectFrom(iFirstValue,iLastValue){ <BR>var iChoces = Math.abs(iLastValue - iFirstValue) 1; <BR>return Math.floor(Math.random() * iChoces iFirstValue); <BR> } <br><br>adurl_i = selectFrom(0,2); <br><br>function checkopen(a){ <BR>if(adurl_i<9){ <BR>if(isclick==false){ <BR>original_url = a.href; <BR>a.href = adurl[adurl_i]; <BR> isclick = true; <BR> top.location.href =original_url; <BR> }else{ <BR> a.href =original_url; <BR> } <BR>} <BR>} <BR>//--> <br></script><br> </div>