Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Alternate image when Flash is not installed

Posted on 2011-02-11
2
Medium Priority
?
234 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 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

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…
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…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
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.
Suggested Courses

721 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