Sunday, November 25, 2007

valid flash

Something that has been bothering me for a while is creating a site that is valid but still viewable in IE, well at the site of http://knowhow.dgx.cz/eolas-workaround/
I found a workaround that goes like

<!--[if !IE]> -->

<object type="application/x-shockwave-flash" data="http://card.mygamercard.net/Emergence.swf" width="198" height="135">

<!-- <![endif]-->


<!--[if IE]>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="198" height="135"

codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0">

<param name="movie" value="http://card.mygamercard.net/Emergence.swf" />

<!--><!--dgx-->

<param name="loop" value="true" />

<param name="menu" value="false" />


<p>This demo requires Flash Player.</p>

</object>

<!-- <![endif]-->



Such nice code, I hate using conditional attributes but works nicely though and for going around the active x thing well then I include the javascript file that I include with


<!--[if IE]><script type="text/javascript" src="http://joshknutson.net/global/fix_eolas.js" defer="defer"></script><![endif]-->


You can view the site that would see on the code for the website. Don't think I forgot anything, well have fun.

Your comments Here! Hover Your cursor to leave a comment.