Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/03/2009, 05:53
codig0
 
Fecha de Ingreso: septiembre-2008
Ubicación: Lanzarote, Canarias
Mensajes: 486
Antigüedad: 16 años, 6 meses
Puntos: 41
Aumentar el tamaño de un flash con javascript

Hola,

me gustaría aumentar y disminuir el tamaño de un flash con javascript... he encontrado este script pero solo funciona en internet explorer y yo quiero que funcione en todos, alguna solución o idea?

Código:
<script>

function tam(d) {
	obj = document.getElementById("flash");

	if (d==0) {
		nw = obj.width*0.9;
		nh = obj.height*0.9;
	} else {
		nw = obj.width*1.1;
		nh = obj.height*1.1;
	}
	obj.width = nw;
	obj.height = nh;
	
}


</script>

<object id="flash" data="200.swf" type="application/x-shockwave-flash" height="350" width="425">
<param name="quality" value="high" />
<param name="movie" value="200.swf" />
</object>

<p>
<a href="javascript:tam(1)">Aumentar</a><br>
<a href="javascript:tam(0)">Disminuir</a>
</p>