Welcome to WebmasterWorld Guest from 54.161.96.239

Forum Moderators: open

Message Too Old, No Replies

Any ideas why this Flash page won't work in FireFox but will in IE

     
6:36 pm on Nov 25, 2009 (gmt 0)

New User

5+ Year Member

joined:Nov 25, 2009
posts: 8
votes: 0


<snip>

[edited by: eelixduppy at 5:10 pm (utc) on Nov. 26, 2009]

7:20 pm on Nov 25, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 0


Welcome aboard JayKay_01, see TOS [webmasterworld.com], #13.

Here is the code, anonymized:


<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0"
width="990" height="500" id="RedGeckoIntro2">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="Flash/your-flash-file.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="bgcolor" value="#ffffff" />
</object>

Moz browsers need <embed>, IE and others, <object>. But IE will display <embed> too, putting two on the page.

The "old school" method of cross browser support is to include the embed tag inside the object tags, like

<object>
.....
<embed>
</object>

This is how Macromedia and Adobe "publish" the code to this day.

Unfortunately, it's invalid HTML.

The most graceful way I've found, and will allow you to validate: swfObject [code.google.com]. Simple to implement, it displays alternate content first so if JS and/or Flash is disabled, you still get a layout and content. If enabled, swfObject writes the Flash to the element. Best of both worlds.

10:51 am on Nov 26, 2009 (gmt 0)

New User

5+ Year Member

joined:Nov 25, 2009
posts:8
votes: 0


Hi rocknbil, sorry about posting my link I should have read the TOS first.

Thanks very much for the info. I've implemented swfObject ver 2 and works a treat on all browsers, tried uninstalling Flash and all the scripts and links worked great too. Thanks again!

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members