已经生成js文件,在同一个版位如何实现多个广告随机或是轮番显示  100分送了,顶起有分
content= "http://www.17173.comΩ/img/att_20070428184031359_Thu.jpgΩ100Ω100Ω163Ω160Ω600Ω100Ω100 "; 
    quan=1       
 //第三次传进来的广告          
 content= "http://www.baidu.comΩ/img/att_20070428184031359_Thu.jpgΩ200Ω200Ω163Ω260Ω400Ω200Ω200 "; 
 quan=2 
    //第二次传进来的广告                                                            
 content= "http://www.sohu.comΩ/img/att_20070428184031359_Thu.jpgΩ150Ω200Ω9999Ω120Ω300Ω100Ω200 "; 
 quan=1 
 //第一次传进来的广告                                 
       this.sarray=new   Array();          
       sarray=content.split( 'Ω ');                     
    this.ADurl=sarray[0];    
    this.imgsrc=   sarray[1];    
    this.ADheight=sarray[2];    
    this.ADwidth=   sarray[3];    
    this.ADalt=sarray[4];    
    this.Zonewidth=sarray[5];    
    this.Zoneheight=sarray[6];    
    this.Zonetop=sarray[7];    
    this.Zoneleft=sarray[8];        
 function   openwin() 
 {    
 openwindow=window.open( " ", " ", "width= "+Zonewidth+ ",height= "+Zoneheight+ ",top= "+Zonetop+ ",left= "+Zoneleft+ " ")    
 openwindow.document.write( " <a   href= "+ADurl+ ">  <img   src= "+imgsrc+ "   alt= "+ADalt+ "   width= "+ADwidth+ "   height= "+ADheight+ "   />  </a>  ")    
 }    
 function   get_cookie(Name)   {    
 var   search   =   Name   +    "= "    
 var   returnvalue   =    " ";    
 if   (document.cookie.length   >    0)   {    
 offset   =   document.cookie.indexOf(search)    
 if   (offset   !=   -1)   {    
 offset   +=   search.length    
 end   =   document.cookie.indexOf( "; ",   offset);    
 if   (end   ==   -1)    
 end   =   document.cookie.length;    
 returnvalue=unescape(document.cookie.substring(offset,   end))    
 }    
 }    
 return   returnvalue;    
 }      
 function   loadpopup(){    
 if   (get_cookie( 'popped ')== ' '){    
 openwin()    
 document.cookie= "popped=yes "    
 }    
 }    
 loadpopup()     
 想利用quan的数值大小做随机显示,速度来指点,我头脑已经茫然了,能在我的基础上改的最好 
------解决方案--------------------梅子 写了个你试试,好用不,就是csdn上的那个.
------解决方案--------------------路过~~
------解决方案--------------------有问题么? 
 Math.floor(Math.random()*3) 
 随机得到0 1 2 3
------解决方案--------------------我记得.NET自己有个这样的插件,试试
------解决方案--------------------顶~来接分的
------解决方案--------------------jf
------解决方案--------------------jf
------解决方案--------------------