
11/07/2002, 02:56
|
 | Moderador extraterrestre | | Fecha de Ingreso: diciembre-2001 Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 23 años, 4 meses Puntos: 61 | |
Re: Aconsejenme.script Piramide De Fotos <script>
imagen= new Array
imagen[0]='imagen1.jpg';
imagen[2]='nada.gif';
imagen[1]='imagen3.jpg';
imagen[3]='imagen4.jpg';
imagen[4]='imagen5.jpg';
imagen[5]='imagen6.jpg';
imagen[6]='imagen7.jpg';
imagen[7]='imagen8.jpg';
imagen[8]='imagen9.jpg';
imagen[9]='imagen10.jpg';
imagen[10]='imagen11.jpg';
imagen[11]='imagen12.jpg';
numero= new Array;
control=new Array;
function cambio(){
for (aa=0; aa<imagen.length; aa++){
numero[aa] = Math.random() * imagen.length
numero[aa] = Math.floor(numero[aa])
for (bb=0;bb<aa;bb++){if (numero[aa]==numero[bb]){aa=aa-1}}
}
if (control[1]!=1){document.foto1.src=imagen[numero[1]];if (numero[1]==2){control[1]=1}}
if (control[2]!=1){document.foto2.src=imagen[numero[2]];if (numero[2]==2){control[2]=1}}
if (control[3]!=1){document.foto3.src=imagen[numero[3]];if (numero[3]==2){control[3]=1}}
if (control[4]!=1){document.foto4.src=imagen[numero[4]];if (numero[4]==2){control[4]=1}}
if (control[5]!=1){document.foto5.src=imagen[numero[5]];if (numero[5]==2){control[5]=1}}
if (control[6]!=1){document.foto6.src=imagen[numero[6]];if (numero[6]==2){control[6]=1}}
if (control[7]!=1){document.foto7.src=imagen[numero[7]];if (numero[7]==2){control[7]=1}}
if (control[8]!=1){document.foto8.src=imagen[numero[8]];if (numero[8]==2){control[8]=1}}
if (control[9]!=1){document.foto9.src=imagen[numero[9]];if (numero[9]==2){control[9]=1}}
if (control[10]!=1){document.foto10.src=imagen[numero[0]];if (numero[0]==2){control[10]=1}}
if (control[11]!=1){document.foto11.src=imagen[numero[10]];if (numero[10]==2){control[11]=1}}
if (control[12]!=1){document.foto12.src=imagen[numero[11]];if (numero[11]==2){control[12]=1}}
setTimeout("cambio()",300);}
</script> |