<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Thanks.  A couple more questions if you don't 
mind....</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1) I saw the innerHTML thing you did and just wrote 
this on the original DV tag, which worked:</FONT></DIV>
<DIV>        
document.getElementById("mySWFobjectDIVcontainer").innerHTML="Hello 
World!";</DIV>
<DIV> </DIV>
<DIV>Any reason to go the step further and create a new div and swap them 
out?</DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>2) This isn't exaclty SWFobject related, but I 
could use some help....</FONT></DIV>
<DIV><FONT face=Arial size=2>What I'd actually like to replace the SWFobject 
with is a preloaded image.  Any help on doing so?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>// done in the head somewhere to preload 
image:</FONT></DIV>
<DIV><FONT face=Arial size=2>var myImage = new Image();</FONT></DIV>
<DIV><FONT face=Arial size=2>myImage.src = "<A 
href="http://mysite.com/images/image.jpg">http://mysite.com/images/image.jpg</A>";</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>// swap SWF for image</FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV>document.getElementById("mySWFobjectDIVcontainer").innerHTML=<img 
src=myImage.src>;  // doesn't work</DIV>
<DIV> </DIV>
<DIV>or</DIV>
<DIV> </DIV>
<DIV>
<DIV>
<DIV>
<DIV><FONT face=Arial size=2>// swap SWF for 
image</FONT></DIV>document.getElementById("mySWFobjectDIVcontainer").innerHTML=<img 
src="<A 
href="http://mysite.com/images/image.jpg">http://mysite.com/images/image.jpg</A>">;  
// doesn't use preload in IE</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV></DIV></DIV></FONT></DIV></FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=jdgiotta@gmail.com href="mailto:jdgiotta@gmail.com">John Giotta</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=swfobject@lists.deconcept.com 
  href="mailto:swfobject@lists.deconcept.com">swfobject@lists.deconcept.com</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, September 07, 2006 12:13 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [SWFObject] How do I 
  dynamically remove swfobject usingjavascript</DIV>
  <DIV><BR></DIV>I suggest doing a DOMElement.replaceChild.<BR><BR>// Somthing 
  like<BR>function removeSWFobject() {<BR>    var newdiv = 
  document.createElement("div");<BR>    newdiv.innerHTML = "Hello 
  World!";<BR>    var flashdiv = 
  document.getElementById("mySWFobjectDIVcontainer");<BR>    
  document.body.replaceChild(newdiv, flashdiv);<BR>}<BR><BR>Of course it does 
  not destroy the SWFObject declared in JavaScript memory, it only removes the 
  HTML rendered output. <BR><BR>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>SWFObject mailing 
  list<BR>SWFObject@lists.deconcept.com<BR>http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com<BR></BLOCKQUOTE></BODY></HTML>