I use ff-activex-host to host our ActiveX, and I need to replace
object tag to embed tag, because when the user doesn't install the ff-
activex-host plugin, the embed tag has the property of pluginspage,
and the browser can know where to download it, but object tag doesn't.
I found that many people will use object and embed tag like below:
<html>
<head>
<script type="text/javascript">
function init()
{
alert(document.getElementById("Control"));
document.getElementById("Control").LoadMovie(0, "http://
192.168.1.8/3dtest/2.swf");
alert("bbb");
}
</script>
</head>
<body onload="init()">
<object id="Control" classid="clsid:D27CDB6E-
AE6D-11cf-96B8-444553540000" >
<param name="src" value="
http://192.168.1.8/3dtest/belowflash.swf">
<embed id="Control" TYPE="application/x-itst-activex"
clsid="{D27CDB6E-AE6D-11cf-96B8-444553540000}" param_src="http://
192.168.1.8/3dtest/belowflash.swf" pluginspage="my plugin download
page"/>
</object>
</body>
</html>
In object tag, there's a embed tag, because these codes doesn't need
to modify to any browser.
But the question is, when i test this page in IE, it works well,
flash's LoadMovie method was called and changes the flash movie in
function init. And i test it in chrome and firefox, function init just
alert the first alert, and it seems that LoadMovie doesn't be called.
So can anyone tell me why, and how i modify my code that i can use
embed tag will work.