[SWFObject] How do I dynamically remove swfobject usingjavascript

John Giotta jdgiotta at gmail.com
Thu Sep 7 12:34:02 PDT 2006


1) No, if you're just removing the inner content that it's fine.

2) I don't see anything wrong with your syntax. Just make sure your
placing the HTML in quotes since your working with strings.

Quick Example:
<div id="imgplace">
Foo
</div>

<script type="text/javascript">
var newimg = new Image();
newimg.src = "http://www.google.com/intl/en/images/logo.gif";
var mydiv = document.getElementById("imgplace");
mydiv.innerHTML = "<img src='" + newimg.src + "' />";
</script>



More information about the Swfobject mailing list