Solved

Alternate image when Flash is not installed

Posted on 2011-02-11
2
218 Views
Last Modified: 2012-08-13
When Flash does not load, I would like to display an image. When I use the following code, the image is displayed below the flash movie. I want it to be hidden when Flash works. What code should I use?
<object classid="clsid:d25cdb6e-ae6d-11cf-34b8-423423540000" 
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" 
    width="452" height="402" id="intro.swf" align="left">
    <param name="movie" value="http://test123.com/intro.swf">
    <param name="allowScriptAccess" value="always" />
    <param name="allowFullScreen" value="false" />
    <param name="quality" value="high">
    <param name="bgcolor" value="#FFFFFF">			 
    <embed src="http://test123.com/intro.swf" quality="high" bgcolor="#FFFFFF"  width="452" height="402" 
	    name="intro.swf" align="left" allowScriptAccess="always" allowFullScreen="false" 
	    type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
    </embed>
    <img src="http://test123.com/intro.png" alt="" title="">
</object>

Open in new window

0
Comment
Question by:R7AF
2 Comments
 
LVL 37

Accepted Solution

by:
CyanBlue earned 500 total points
ID: 34874002
You might want to check out SWFObject for that...
   http://code.google.com/p/swfobject/
   http://www.adobe.com/devnet/flashplayer/articles/alternative_content.html

CyanBlue
0
 
LVL 14

Expert Comment

by:tomaugerdotcom
ID: 34881163
I also recommend SWFObject, but if you want a more DIY approach, try this protocol:
<!--[if !IE]> -->
<object type="application/x-shockwave-flash" data="flash.swf" width="500" height="100">
<!-- <![endif]-->

<!--[if IE]>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" 
    width="500" height="100">
  <param name="movie" value="flash.swf" />
<!--><!--dgx-->
  <param name="loop" value="false">
  <param name="menu" value="false">
  <param name="quality" value="high">
  <img src="flash_replacement.png" width="500" height="100" alt="No Flash">
</object>
<!-- <![endif]-->

Open in new window

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
FLV versus SWF 11 270
Action Script commands 4 305
Flash content not working in IE 11 on Windows 8.1 3 155
Google Chrome pepflashplayer.dll 8 125
I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now