Link to home
Start Free TrialLog in
Avatar of ApexCo
ApexCoFlag for United States of America

asked on

Showing alternate image if Flash is not installed or disabled.

I'm using the attached code to display my flash files.

I'm loading up a movie depending on the page parameter in the URL, and while everything works fine in IE, it is not working in FF.

With the embed tag in place to get the movie to show in FF, the image appears below the flash file. In IE, it works with or without the embed tag. If Flash is on, the correct file is shown, if Flash is disabled the regular image shows.

What can I do to fix behavior in FireFox?

<div class="productGroupTop">
         <asp:HyperLink id="lnkGroupHero" runat="server">        
            <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="800" height="233" id="GroupPageMovie" align="middle">
            <param name="allowScriptAccess" value="sameDomain" />
            <param name="allowFullScreen" value="false" />
            <param name="movie" value="<%= Page.ResolveUrl("~") %>/<%=FilePath.tostring() %>" />
            <param name="quality" value="high" />
            <param name="bgcolor" value="#ffffff" />
            <param name="wmode" value="transparent" />
            <param name="salign" value="tl" />
            <embed src="<%= Page.ResolveUrl("~") %>/<%=FilePath.tostring() %>" quality="high" bgcolor="#ffffff" width="800" height="233" name="GroupPageMovie" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
             <div id="heroImage">
            <asp:Image ID="imgGroupHero" runat="server" />
            </div>
         </object>
        </asp:HyperLink>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of courtthree
courtthree

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ApexCo

ASKER

I finally got a chance to look at the swfobject.

Thanks for linking that, it's awesome and was cake to implement. Took about 1 second to download and 5 minutes to get it all working.  :)