Ver Mensaje Individual
  #5 (permalink)  
Antiguo 03/02/2002, 09:38
CHuLoYo
 
Fecha de Ingreso: diciembre-2001
Mensajes: 164
Antigüedad: 22 años, 4 meses
Puntos: 0
Re: Aleatorio ...

Prueba esto:

<pre>
&lt;!-- Copiar dentro del tag BODY --&gt;
&lt;script language=&quot;javascript&quot;&gt;
&lt;!--
function VecImagenes()
{
n=0;
this[n++]=&quot;&lt;a href='01.jpg'&gt;&lt;img src='01.jpg'&gt;&lt;/a&gt;&quot;;
this[n++]=&quot;&lt;a href='02.jpg'&gt;&lt;img src='02.jpg'&gt;&lt;/a&gt;&quot;;
this[n++]=&quot;&lt;a href='03.jpg'&gt;&lt;img src='03.jpg'&gt;&lt;/a&gt;&quot;
this.N=n;
}

var Imagenes=new VecImagenes();
src= Imagenes[
Math.floor(Math.random() * Imagenes.N) ] ;document.write(&quot;&lt;IMG SRC=&quot;+src+&quot;&gt;&quot;);//--&gt;&lt;/script&gt; </pre>

www.castroweb.es.vg