Since this was written, SWFobject2.0 has been released. Read "Embedding YouTube Videos the Standards Compliant Way—SFWobject 2.0" to learn more about using the updated version for embedding videos and other .swf files.
Last week a colleague wrote to ask why she had to push a button to see her Web site and why it was loading so slowly. I took a look at the site, and had my usual reaction. "It looks fine in Firefox, let me check Internet Explorer."
When I checked in Explorer I saw just what she meant. Her site uses Flash, and due to a lawsuit between Microsoft and Eolas, Internet Explorer no longer processes <object>, <embed> or <applet> in the way that it used to. Now instead of using <object> to embed a Flash file, you need to use javascript in order for Internet Explorer users to load the content automatically. While this isn't a particularly new problem—it's been around for about a year—it's the kind of thing you might not notice unless you use Internet Explorer on a regular basis.
If you are currently using the old method to embed flash files, and you have Internet Explorer users who visit your site, you may want to consider using one of the new javascript methods. I've experimented with a few and found the SWFObject script to be the easiest to implement. If you have a better method, please share it in the comments section below.
While all the instructions and files you need are available on the SWFObject Web site, I thought it might be useful to give a quick overview of the process here.
That's pretty much it. To learn more about the process or to customize it for your particular needs visit the SWFObject Web site.
Comment by MLRuwoldt — April 25, 2007 @6:39 pm
Comment by Cool Marketing Products — April 27, 2007 @8:11 pm
Comment by Heidi Cool — May 1, 2007 @1:24 pm
Comment by Jan from thrusites design — August 14, 2007 @6:28 am
Comment by Girish — November 22, 2007 @1:10 pm
Comment by Kado Square — April 7, 2008 @8:01 pm
Comment by Microsoft Word fan — June 1, 2008 @9:18 am
Comment by India News — June 15, 2008 @2:26 am
Pingback by Diaspar Was Not Always Thus — June 2, 2009 @8:53 pm
Pingback by » Embedding YouTube Videos the Standards Compliant Way—SFWobject 2.0 | Web Development Blog: Heidi Adams Cool — July 29, 2009 @12:07 am