Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/04/2006, 08:51
Avatar de pulento
pulento
 
Fecha de Ingreso: noviembre-2002
Ubicación: En un pequeño, helado, obscuro reino... llamado Dinamarca.
Mensajes: 1.852
Antigüedad: 21 años, 6 meses
Puntos: 1
script de desactivacion de objetos embetidos

todavia tengo problemas para desabilitar el marco que sale en IE cuando se usa un objeto embetido.
Encontre este script en la pagina de la Microsoft. Pero no me corre..? que esta mal..?

Código PHP:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<
title>testIE</title>
<
script src="testIE2.js" language="JScript"></script>

</head>

<body bgcolor="#ffff11">
       <div id="EXAMPLE_DIV_ID">
      This text will be replaced by the control....!
   </div>
   <script language="JScript">
     CreateControl( "EXAMPLE_DIV_ID", "classid:6BF52A52-394A-11d3-B153-00C04F79FAA6", "EXAMPLE_OBJECT_ID", "250", "250", "testIE.swf", "-1")
   </script>
</body>
</html> 
y el archivo js.

Código PHP:
// JavaScript Document

function CreateControl(DivIDCLSIDObjectID,
                       
WIDTHHEIGHTURLAUTOSTART)
{
  var 
document.getElementById(DivID);
  
d.innerHTML 
    
'<object classid=' CLSID ' id=' ObjectID 
    
' width=' WIDTH ' height=' HEIGHT +'>
    <param name="URL" value=' 
URL '>
    <param name="autoStart" value=' 
AUTOSTART '/>';

Es urgente.. si alguien puede hecharle un ojo ... o conoce otra solucion.


Salu2 y gracias
__________________
http://www.flotdesign.dk/