List of browsers used during test:
Windows browsers
Mac browsers
Linux browsers
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="420" HEIGHT="350" id="adobeWay">
<PARAM NAME=movie VALUE="http://youtube.com/v/rIFh1ydXWmg">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="http://youtube.com/v/rIFh1ydXWmg" quality=high bgcolor=#FFFFFF WIDTH="425" HEIGHT="350" NAME="adobeWay" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
<OBJECT width="425" height="350">
<PARAM name="movie" value="http://www.youtube.com/v/EwEk62HViIA"></PARAM>
<PARAM name="wmode" value="transparent"></PARAM>
<EMBED src="http://www.youtube.com/v/EwEk62HViIA" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350">
</EMBED>
</OBJECT>
Youtube movies internal features aren't supposed to be accesible
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
width="425" height="350">
<param name="movie" value="http://youtube.com/v/Cejq10jZ0kQ">
<param name="quality" value="high">
<param name="bgcolor" value="#FFFFFF">
<!--[if !IE]> <-->
<object data="http://youtube.com/v/Cejq10jZ0kQ"
width="425" height="350" type="application/x-shockwave-flash">
<param name="quality" value="high">
<param name="bgcolor" value="#FFFFFF">
<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">
FAIL (the browser should render some flash content, not this).
</object>
<!--> <![endif]-->
Opera 7.5 on Windows didn't embed the flash element "FAIL (the browser should render some flash content, not this)."
<OBJECT data="http://youtube.com/v/mrW8ub2H3MY" type="application/x-shockwave-flash" width="425" height="350">
<PARAM name="movie" value="http://youtube.com/v/mrW8ub2H3MY">
</OBJECT>
Opera 7.5 on Windows didn't embed the flash element, but I think it was because I did the test with a YouTube movie, where the flash elements only is linked by an ID-number and isn't a 'normal' file with .swf extension.
I used this technique earlier and there were no problems then. I'll review this again later.
This way of embedding made IE5.2 on Mac ignore the float: left; of the div containing the SWF. View screenshot.
This embedding technique was usefull for me when I wanted to embed an flash element in a Plone-website (Plone is an open source content management system). The plone site used the Kupu editor to make the content management easier. But this plugin also "cleaned" the html code entered. The main problem was in the 'embed' element, so this method was a great way to work arround it.
For more information about this subject, please read my post about embedding flash elements in Plone.
Link UFO javascript file (ufo.js) to your html document
<script type="text/javascript">
var FO = { movie:"http://youtube.com/v/1zN9gtrF7xI", width:"425", height:"350", majorversion:"6", build:"0" };
UFO.create(FO, "UFOway");
</script>
<div id="UFOway"> Replacement text </div>
Validation: UFO uses W3C DOM methods to insert the object element for all Gecko based browsers (e.g. Firefox, Mozilla, Netscape) and all other browsers that use both the Netscape plug-in API (e.g. Opera and Safari) and an XML MIME type.
UFO uses innerHTML to insert the object element for Internet Explorer
Internet Explorer 5.2 on Mac didn't embed the flash movie. "You need to upgrade your Flash Player"
Link SWFObject javascript file (swfobject.js) to your html document
<script type="text/javascript">
var so = new SWFObject("http://youtube.com/v/0EW4SRxLczk", "SWFObject-way", "425", "350", "7", "#ffffff");
so.write("flashcontent");
</script>
Validation: Can be used in valid HTML and XHTML 1.0 documents when pages are sent as text/html, not application/xhtml+xml. So that makes SWFObject less W3C compliant then UFO.
SWFFix is a project where Geoff Stearns (from UFO) and Bobby van der Sluis (from SWFObject) try to unite their techniques / ideas with the goal to create the ultimate JavaScript library for embedding Flash content.
At the time of this post (februari 2006) they just started thinking, so no results yet.
More info: http://www.swffix.org/devblog/