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>
Código PHP:
// JavaScript Document
function CreateControl(DivID, CLSID, ObjectID,
WIDTH, HEIGHT, URL, AUTOSTART)
{
var d = document.getElementById(DivID);
d.innerHTML =
'<object classid=' + CLSID + ' id=' + ObjectID +
' width=' + WIDTH + ' height=' + HEIGHT +'>
<param name="URL" value=' + URL + '>
<param name="autoStart" value=' + AUTOSTART + '/>';
}
Salu2 y gracias