a btw trabajo con una macbook con leopard y con firefox 3
aqui les dejo el código js
Código:
y por si lo necesitan el del htmlfunction cambiar(){ alert("si entra"); // var varr = document.forma.variable.value; var elemento=document.createElement('p'); var texto=document.createTextNode('Hola Mundo'); elemento.appendChild(texto); var cuerpazo = document.getElementById('cuerpo'); cuerpazo.appendChild(elemento); var obj = document.createElement('object'); var param1 = document.createElement('param'); var param2 = document.createElement('param'); var embed1 = document.createElement('embed'); obj.setAttribute('classid','clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'); obj.setAttribute('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0'); obj.setAttribute('width','700'); obj.setAttribute('height','490'); obj.setAttribute('id','obbj'); obj.setAttribute('style','position: absolute'); param1.setAttribute('name','movie'); param1.setAttribute('value','probar.swf?nuevo='+varr); param2.setAttribute('name','quality'); param2.setAttribute('value','high'); embed1.setAttribute('src','probar.swf?nuevo='+varr); embed1.setAttribute('quality','high'); embed1.setAttribute('pluginspage','http://www.macromedia.com/go/getflashplayer'); embed1.setAttribute('type','application/x-shockwave-flash'); embed1.setAttribute('width','700'); embed1.setAttribute('height','490'); obj.appendChild(param1); obj.appendChild(param2); obj.appendChild(embed1); cuerpazo.appendChild(obj); /*var position; position=position + 'top : ' + obj.style.top position=position + ' left : ' + obj.style.left position=position + ' width : ' + obj.style.width position=position + ' height : ' + obj.style.height alert(position);*/ }
Código HTML:
<html> <head> <script language="javascript" src="funciones.js" type="text/javascript"></script> </head> <body id="cuerpo" onload="tryer()"> <br><br><br> este ya no <object style="z-index: 10; top: 0px; left:300px; position: absolute" id="peli" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="700" height="490"> <param id="para" name="movie" value="probar.swf?nuevo=nombre"> <param name="quality" value="high"> <embed src="probar.swf?nuevo=nombre" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="700" height="490"></embed> </object> <br><br><br> <form name="forma"> <input type="button" value="cambiar" onClick="cambiar()"> <input type="text" name="variable"> <input type="button" value="otro" onClick="tryer()"> </form> <input type="button" value="mover" onClick="mover()"> </body> </html>