Solved

show image instead of flash if flash not installed

Posted on 2013-01-30
3
617 Views
Last Modified: 2013-02-02
Hi I want to show an image if flash is not installed (eg on a iphone) and want it to be w3c safe so far have

<object type="application/x-shockwave-flash"
data="name.swf"
width="100" height="100">
<param name="movie" value="name.swf" />
<param name="quality" value="high"/>
<param name="wmode" value="transparent"/>
</object>

How do i do it on all browsers, have seen things that are ment to work on some browsers but do not work on all.
some say to do is in vb.net some in java by hiding the tag and some by adding the image in the object tag but this does not work. Please help.
0
Comment
Question by:taz8020
[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
3 Comments
 
LVL 19

Expert Comment

by:quizengine
ID: 38835230
swfobject gives you a good way to do this.

You have a div that contains your *alternate* content (i.e. the content to show if Flash is NOT installed). The swfobject code attempts to place the Flash content (swf) inside this div, thus replacing your alternate content.

See http://blog.deconcept.com/swfobject/

and search the page for 'so.write' (without the quotes) to see the part of the blog post that deals with this.

The swfobject.js code is open source and there are download links at the end of the blog post
0
 
LVL 28

Accepted Solution

by:
sybe earned 500 total points
ID: 38835382
0
 
LVL 3

Author Closing Comment

by:taz8020
ID: 38847510
I did try this, I dont know why this did not work for me at first.
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

752 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