Solved

Alternate image when Flash is not installed

Posted on 2011-02-11
2
227 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
[X]
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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Text To Speech Reader For Adobe Flash Pages 4 987
free flash maker 5 222
Shockwave Flash Object within PowerPoint 2013 2 180
Adobe Connect add-in only works in admin accounts 4 45
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…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
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…
Suggested Courses

739 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