Welcome to WebmasterWorld Guest from 54.161.135.168

Forum Moderators: open

embed Flash in Firefox with XHTML page

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

10+ Year Member



Hi

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" />
</object>

Thanks for any help on this.

Alasdair

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:

[blog.deconcept.com...]

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.

[forums.mozillazine.org...]

<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="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).

</object>
<!--> <![endif]-->

</object>

 

Featured Threads

Hot Threads This Week

Hot Threads This Month