homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

embed Flash in Firefox with XHTML page

 4:04 pm on Jun 27, 2007 (gmt 0)


I have been trying to embed a Flash movie in a web page using valid XHTML markup and it does not work in Firefox. I have looked into the Satay method, but this seems very very complex. Is there a simpler method (that does not prevent the movie from showing properly in IE)?

Here is my current code:

<object type="application/x-shockwave-flash" width="600" height="450">
<param name="movie" value="test.swf" />

Thanks for any help on this.




 4:08 pm on Jun 27, 2007 (gmt 0)

If your user base typically has JavaScript enabled, you can embed the Flash movie:



 4:16 pm on Jun 27, 2007 (gmt 0)

Actually just found this on the Mozilla site which seems to work though haven't tested it thoroughly yet. I had to add the trailing slash to the Param tags to get it to validate.


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
width="600" height="450">
<param name="movie" value="test.swf" />
<param name="quality" value="high" />

<!--[if!IE]> <-->
<object data="test.swf"
width="600" height="450" type="application/x-shockwave-flash">
<param name="quality" value="high" />

FAIL: (the browser should render some flash content, not this).

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


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved