Ver Mensaje Individual
  #4 (permalink)  
Antiguo 16/07/2003, 06:37
ToKaTa
 
Fecha de Ingreso: marzo-2001
Ubicación: Gran Canaria
Mensajes: 381
Antigüedad: 23 años, 2 meses
Puntos: 2
para cada pelicula deberas indicar el alto y el ancho dentro del switch:


Código:
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body bgcolor="#FFFFFF" text="#000000">
<script language="JavaScript1.2">

	numPeliculas = 3;

	numAleatorio = Math.random() * numPeliculas;
	numAleatorio = Math.floor(numAleatorio);		
	numAleatorio++;

	switch (numAleatorio){
		case 1:ancho = 100; alto = 100; break;
		case 2:ancho = 50; alto = 50; break;
		case 3:ancho = 25; alto = 25; break;
		default:ancho = 20; alto = 20; break;
	}

	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='"+ancho+"' height='"+alto+"'>");
	document.write("<param name=movie value='peliculas/peli"+numAleatorio+".swf'>");
	document.write("<embed src='peliculas/peli"+numAleatorio+".swf' quality=high  type='application/x-shockwave-flash' width='"+ancho+"' height='"+alto+"'>");
	document.write("</embed>");
	document.write("</object>");

</script>

</body>
</html>


ToKaTa.
__________________

"Si pudieras volver.....¿.lo harias?"