Properly embedding Flash into WordPress without embed tags

I was tired of places like YouTube handing me tags to place flash files in my blog when they are not now (and never have been) part ofany HTML or XHTML standard. So, I took a look at how different browsers use tags to achieve the same thing. Then, I tested my results in Safari, Firefox, Opera, Explorer, and Lynx. My experiements resulted in the following code:

<object type="application/x-shockwave-flash" width="425" height="350" data="">
<param name="movie" value="" />
<param name="quality"value="high" />
<param name="wmode" value="transparent" />
<param name="pluginurl" value="" />
<a href="" mce_href="">HERE</a>

Unfortunately, the redundancy is necessary. It compensates for differences between the major browsers. Remember to set your height and width, and to change the URL in all 3 places. If anyone would like to help me encase this in a wordpress plugin, I’d appreciate it.

2 Replies to “Properly embedding Flash into WordPress without embed tags”

  1. But… Which versions of each of those browsers did you test? There is actually a good reason for the EMBED nonsense (and I agree it’s nonsense and non-standard) — and that’s basically compatibility with older browsers (primarily IE, if I remember rightly). Newer browsers that deal correctly with the OBJECTs get them — within the EMBED, as I recall, which EMBED is ignored as an unrecognized tag, as HTML renderers are supposed to do….
    Ted Thibodeau Jr at 08/15/2007 07:55:19 pm

  2. I’ve tested quite a few of them. Have you found any that actually don’t work using this code? All of the flash on my site uses this code, including the youtubes 🙂
    Steven at 08/23/2007 04:31:53 am

Leave a Reply