Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/09/2010, 10:32
shinotriana
 
Fecha de Ingreso: septiembre-2007
Mensajes: 104
Antigüedad: 16 años, 7 meses
Puntos: 1
alinear al centro una series de imagenes de fondo

Hola a todos, tengo el siguiente código:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Santiago Talavera Lucas</title>
<script type="text/javascript" align="center">
<!--
function ImagenesObj() {
n=0;
this[n++]="1.png";
this[n++]="2.png";
this[n++]="3.jpg";
this[n++]="4.jpg";
this[n++]="5.jpg";
this[n++]="6.jpg";
this[n++]="7.jpg";
this[n++]="8.jpg";
this.N=n;
}
var Imagenes=new ImagenesObj();
src= Imagenes[ Math.floor(Math.random() * Imagenes.N) ] ;
document.write("<img src="+src+">");
//-->
</script>
<style type="text/css">
<!--
body {
background-color: #006699;
}
-->
</style></head>

<body>

</body>
</html>