<script>
function testa(argarray){
var temparray=new Array();
var flag=true;
var i=0;
while(flag){
randomvalue=Math.floor(Math.random()*argarray.length);
if(temparray.toString().indexOf(randomvalue)==-1){
temparray[i]=randomvalue;
i++;
}
if(i>=argarray.length) flag=false;
}
for(var j=0;j<temparray.length;j++) document.write(argarray[temparray[j]],"<br>");
}
</script>
<script>
var qct1array=new Array();
qct1array[0]="<tr><td><input name=/"qc1a/" type=/"checkbox/" id=/"qc1a/" value=/"a/" οnclick=/"qc1_selected = multicontrol(qc1_selected,this,5)/;/"/>新浪商城</td></tr>";
qct1array[1]="<tr><td><input name=/"qc1b/" type=/"checkbox/" id=/"qc1b/" οnclick=/"qc1_selected = multicontrol(qc1_selected,this,5)/;/" value=/"b/"/>搜狐商城<//td></tr>";
qct1array[2]="<tr><td><input name=/"qc1c/" type=/"checkbox/" id=/"qc1c/" οnclick=/"qc1_selected = multicontrol(qc1_selected,this,5)/;/" value=/"c/"/>263商城<//td></tr>";
testa(qct1array);
</script><script type="text/javascript"> function testa(argarray){ var temparray=new Array(); var flag=true; var i=0; while(flag){ randomvalue=Math.floor(Math.random()*argarray.length); if(temparray.toString().indexOf(randomvalue)==-1){ temparray[i]=randomvalue; i++; } if(i>=argarray.length) flag=false; } for(var j=0;j<temparray.length;j++) document.write(argarray[temparray[j]],"<br>"); } </script><script type="text/javascript"> var qct1array=new Array(); qct1array[0]="<tr><td><input name=/"qc1a/" type=/"checkbox/" id=/"qc1a/" value=/"a/" οnclick=/"qc1_selected = multicontrol(qc1_selected,this,5)/;/"/>新浪商城</td></tr>"; qct1array[1]="<tr><td><input name=/"qc1b/" type=/"checkbox/" id=/"qc1b/" οnclick=/"qc1_selected = multicontrol(qc1_selected,this,5)/;/" value=/"b/"/>搜狐商城<//td></tr>"; qct1array[2]="<tr><td><input name=/"qc1c/" type=/"checkbox/" id=/"qc1c/" οnclick=/"qc1_selected = multicontrol(qc1_selected,this,5)/;/" value=/"c/"/>263商城<//td></tr>"; testa(qct1array); </script><script type="text/javascript"> function testa(argarray){ var temparray=new Array(); var flag=true; var i=0; while(flag){ randomvalue=Math.floor(Math.random()*argarray.length); if(temparray.toString().indexOf(randomvalue)==-1){ temparray[i]=randomvalue; i++; } if(i>=argarray.length) flag=false; } for(var j=0;j<temparray.length;j++) document.write(argarray[temparray[j]],"<br>"); } </script><script type="text/javascript"> var qct1array=new Array(); qct1array[0]="<tr><td><input name=/"qc1a/" type=/"checkbox/" id=/"qc1a/" value=/"a/" οnclick=/"qc1_selected = multicontrol(qc1_selected,this,5)/;/"/>新浪商城</td></tr>"; qct1array[1]="<tr><td><input name=/"qc1b/" type=/"checkbox/" id=/"qc1b/" οnclick=/"qc1_selected = multicontrol(qc1_selected,this,5)/;/" value=/"b/"/>搜狐商城<//td></tr>"; qct1array[2]="<tr><td><input name=/"qc1c/" type=/"checkbox/" id=/"qc1c/" οnclick=/"qc1_selected = multicontrol(qc1_selected,this,5)/;/" value=/"c/"/>263商城<//td></tr>"; testa(qct1array); </script><script type="text/javascript"> function testa(argarray){ var temparray=new Array(); var flag=true; var i=0; while(flag){ randomvalue=Math.floor(Math.random()*argarray.length); if(temparray.toString().indexOf(randomvalue)==-1){ temparray[i]=randomvalue; i++; } if(i>=argarray.length) flag=false; } for(var j=0;j<temparray.length;j++) document.write(argarray[temparray[j]],"<br>"); } </script><script type="text/javascript"> var qct1array=new Array(); qct1array[0]="<tr><td><input name=/"qc1a/" type=/"checkbox/" id=/"qc1a/" value=/"a/" οnclick=/"qc1_selected = multicontrol(qc1_selected,this,5)/;/"/>新浪商城</td></tr>"; qct1array[1]="<tr><td><input name=/"qc1b/" type=/"checkbox/" id=/"qc1b/" οnclick=/"qc1_selected = multicontrol(qc1_selected,this,5)/;/" value=/"b/"/>搜狐商城<//td></tr>"; qct1array[2]="<tr><td><input name=/"qc1c/" type=/"checkbox/" id=/"qc1c/" οnclick=/"qc1_selected = multicontrol(qc1_selected,this,5)/;/" value=/"c/"/>263商城<//td></tr>"; testa(qct1array); </script><script type="text/javascript"> function testa(argarray){ var temparray=new Array(); var flag=true; var i=0; while(flag){ randomvalue=Math.floor(Math.random()*argarray.length); if(temparray.toString().indexOf(randomvalue)==-1){ temparray[i]=randomvalue; i++; } if(i>=argarray.length) flag=false; } for(var j=0;j<temparray.length;j++) document.write(argarray[temparray[j]],"<br>"); } </script><script type="text/javascript"> var qct1array=new Array(); qct1array[0]="<tr><td><input name=/"qc1a/" type=/"checkbox/" id=/"qc1a/" value=/"a/" οnclick=/"qc1_selected = multicontrol(qc1_selected,this,5)/;/"/>新浪商城</td></tr>"; qct1array[1]="<tr><td><input name=/"qc1b/" type=/"checkbox/" id=/"qc1b/" οnclick=/"qc1_selected = multicontrol(qc1_selected,this,5)/;/" value=/"b/"/>搜狐商城<//td></tr>"; qct1array[2]="<tr><td><input name=/"qc1c/" type=/"checkbox/" id=/"qc1c/" οnclick=/"qc1_selected = multicontrol(qc1_selected,this,5)/;/" value=/"c/"/>263商城<//td></tr>"; testa(qct1array); </script><script type="text/javascript"> function testa(argarray){ var temparray=new Array(); var flag=true; var i=0; while(flag){ randomvalue=Math.floor(Math.random()*argarray.length); if(temparray.toString().indexOf(randomvalue)==-1){ temparray[i]=randomvalue; i++; } if(i>=argarray.length) flag=false; } for(var j=0;j<temparray.length;j++) document.write(argarray[temparray[j]],"<br>"); } </script><script type="text/javascript"> var qct1array=new Array(); qct1array[0]="<tr><td><input name=/"qc1a/" type=/"checkbox/" id=/"qc1a/" value=/"a/" οnclick=/"qc1_selected = multicontrol(qc1_selected,this,5)/;/"/>新浪商城</td></tr>"; qct1array[1]="<tr><td><input name=/"qc1b/" type=/"checkbox/" id=/"qc1b/" οnclick=/"qc1_selected = multicontrol(qc1_selected,this,5)/;/" value=/"b/"/>搜狐商城<//td></tr>"; qct1array[2]="<tr><td><input name=/"qc1c/" type=/"checkbox/" id=/"qc1c/" οnclick=/"qc1_selected = multicontrol(qc1_selected,this,5)/;/" value=/"c/"/>263商城<//td></tr>"; testa(qct1array); </script>
Javascript随机的应用
最新推荐文章于 2024-07-31 13:55:09 发布