craftymind
09-18-2003, 11:44 PM
I can successfully create a new flash object but can't get params inserted into it.
A flash object in IE should look like this.
<object id="flashmovie" width="300" height="100" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param name="movie" value="flashmovie.swf">
</object>
This is my function for adding flash to the html body, but I don't know how to get <param name="movie" value="flashmovie.swf"> into the object.
The commented code is everything I've tried so far but doesn't work.
function addFlash(){
var flash = document.createElement("object");
flash.id = "flashmovie";
flash.classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";
flash.width = "300";
flash.height = "100";
//flash.innerHTML = "<param name='movie' value='hexit.swf'>";
//flash.createElement("<param name='movie' value='hexit.swf'>");
document.body.appendChild(flash);
}
How can I get that param attached?
Thanks
A flash object in IE should look like this.
<object id="flashmovie" width="300" height="100" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param name="movie" value="flashmovie.swf">
</object>
This is my function for adding flash to the html body, but I don't know how to get <param name="movie" value="flashmovie.swf"> into the object.
The commented code is everything I've tried so far but doesn't work.
function addFlash(){
var flash = document.createElement("object");
flash.id = "flashmovie";
flash.classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";
flash.width = "300";
flash.height = "100";
//flash.innerHTML = "<param name='movie' value='hexit.swf'>";
//flash.createElement("<param name='movie' value='hexit.swf'>");
document.body.appendChild(flash);
}
How can I get that param attached?
Thanks