Dreamweaver - Objeto flash aleatorio

 
Vista:

Objeto flash aleatorio

Publicado por Herbert (22 intervenciones) el 20/07/2007 10:56:42
Hola,
Tengo una pantalla con una animación flash, pero quiero que cada vez que entres salga una animación diferente. Y para eso he hecho un script que me funciona pero la animación flash sale muy pequeña y debería medir 300 x 400px.

<script language="JavaScript">
<!--
function Aleatoria()
{
n=0;
this[n++]="animacion1.swf";
this[n++]="animacion2.swf";
this[n++]="animacion3.swf"
this.N=n;
}
var Animacion=new Aleatoria();
src= Animacion[ Math.floor(Math.random() * Animacion.N) ] ;
document.write("<EMBED SRC="+src+">");
//-->
</script>

Gracias!!
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder