![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
01/02/2002, 07:13
|
| | Fecha de Ingreso: febrero-2001
Mensajes: 292
Antigüedad: 24 años Puntos: 0 | |
Re: Imagen aleatoria por favor El siguiente código está tomado de <a href='ir.asp?http://www.webtutorial.com.ar/javascript/' target='_blank'>http://www.webtutorial.com.ar/javascript...</a>
<pre>
<!-- Copiar dentro del tag BODY -->
<script language="javascript">
<!--
function VecImagenes()
{
n=0;
this[n++]="01.jpg";
this[n++]="02.jpg";
this[n++]="03.jpg"
this.N=n;
}
var Imagenes=new VecImagenes();
src= Imagenes[ Math.floor(Math.random() * Imagenes.N) ] ;
document.write("<IMG SRC="+src+">");
//-->
</script>
</pre>
<hr noshade size=1 color="#000000"><img src="http://www.gograph.com/Images-8712/ClipArt/cat03.gif" height="50" border=0 align="absmiddle"> <font size="2" face="verdana" color="#000000">bet[/CODE] |