I've never worked with Flash before, but I need to find a way of displaying a static image if Flash is not installed or not supported. I found several methods but not seem to work (see below). Any suggestions would be greatly appreciated. My website is mostly PHP/HTML. Everything I've tried (in both IE and FF) shows the Flash movie if Flash is installed or enabled, but always shows "Click here to install the following ActiveX control: 'Adobe Flash Player' from 'Adobe Systems Incorporated'..." if Flash is not available. Here's what I've tried:

<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','928','height','141','src','/assets/flash/flash_banner','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','/assets/flash/flash_banner' ); //end AC code
</script>

<noscript>

<!-- options below -->

</noscript>

Method 1:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="928" height="141">
  <param name="movie" value="/assets/flash/flash_banner.swf" />
  <param name="quality" value="high" />
  <embed src="/assets/flash/flash_banner.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="928" height="141"></embed>
 <div><img src="/themes/views/public/default2/images/logo.jpg" width="928" height="141" alt="no flash image" title="" /></div>
</object>

Method 2:

<object type="application/x-shockwave-flash" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="928" height="141">
  <param name="movie" value="/assets/flash/flash_banner.swf" />
  <param name="quality" value="high" />
<div><img src="/themes/views/public/default2/images/logo.jpg" width="928" height="141" alt="no flash image" title="" /></div>
</object>

Method 3:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="928" height="141" id="flashContent">
<param name="movie" value="/assets/flash/flash_banner.swf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="/assets/flash/flash_banner.swf" width="928" height="141">
<!--<![endif]-->
<img src="/themes/views/public/default2/images/logo.jpg" alt="no flash image" />
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>

Method 4:

<div id="splashintro">
<img src="/themes/views/public/default2/images/logo.jpg" />
</div>
<script type="text/javascript">
var so = new SWFObject("/assets/flash/flash_banner.swf", "my_intro", "928", "141", "8", "#338899");
so.write("splashintro");
</script>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.