Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Alternate image when Flash is not installed

Posted on 2011-02-11
2
223 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

860 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