/ Published in: HTML
Hey guys, I struggled a little to find a crossbrowser, non repetitive params way to embed swfs; this object embed works flawlessly for me in all browsers - ie7, ie8, safari, chrome, firefox. Why is swfobject and YouTube using this format - http://code.google.com/p/swfobject/wiki/documentation ( scroll to static embed ) ? The flaw with that is that you have to change width/height/flashvars 2 times rather then my method where it's only one ...
So anybody knows why they are using that ? Does it work in IE6 ( I can't test this .. ) ? If that's the case - I don't care about ie6:D
So anybody knows why they are using that ? Does it work in IE6 ( I can't test this .. ) ? If that's the case - I don't care about ie6:D
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<p> <object type="application/x-shockwave-flash" data="preview.swf" width="915" height="360" id="flashcontent" style="visibility: visible; "><param name="movie" value="preview.swf"><param name="menu" value="false"><param name="allowScriptAccess" value="always"><param name="scale" value="noscale"><param name="allowFullScreen" value="true"><param name="wmode" value="opaque"><param name="flashvars" value="xml=xml/gallery2.xml"> </object> </p> <p> <object type="application/x-shockwave-flash" data="preview.swf" width="915" height="360" id="flashcontent" style="visibility: visible;"> <param name="flashvars" value="xml=xml/gallery2.xml"> </object> </p>