Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

embed Flash in Firefox with XHTML page



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

10+ Year Member


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)

WebmasterWorld Senior Member 10+ Year Member

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



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

10+ Year Member

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]-->



Featured Threads

Hot Threads This Week

Hot Threads This Month