Here is what I am using:

<!--[if IE]><noscript id="flash1"><![endif]--><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"; width="435" height="270" id="flash_home" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="flash.swf" />
<param name="loop" value="false" />
<param name="quality" value="best" />
<param name="bgcolor" value="#ffff" />
<embed src="flash.swf" loop="false" quality="best" bgcolor="#ffffff" width="435" height="270" name="flash_home" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"; /> </object><!--[if IE]></noscript><script language="JavaScript" type="text/javascript">writeExCtrl('flash1')</script><![endif]-->

and then in an exteranl .js file:
function writeExCtrl(id){
if(document.getElementById && document.getElementById(id) && document.getElementById(id).innerHTML){ document.write(document.getElementById(id).innerHTML.replace(/&gt;/gi, '>').replace(/&lt;/gi, '<'));
}
}

Basically, everything is the same as it always was for every browser other than ie using the ie conditional comments, http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/ccomment_ovw.asp, put in noscript tags around the call to the flash file. So if the user is using ie and has javascript turned off, they will still see the flash, but will have to click on it to enable it. This is as good as it can get for a non javascript ie user. If they do have javascript, the function reads the innerHTML of the noscript tag and writes it out to the page and all is good.

It might be possible to get a bit more specific on the conditional comments, like perhaps only targeting ie6, but I am not sure if microsoft will be rolling out this "fix" to ie 5 or not, so I have bee playing it safe for now.




Can anyone answer this:

What happens if a user doesn't have javascript enabled in their browser for the recommended Macromedia solution (see link: http://www.macromedia.com/devnet/activecontent/articles/devletter.html) to this whole Active X debacle ?

???

Please answer this if you can. It has me stressed.

Thanks,
Stephen.

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to