Solved

show image instead of flash if flash not installed

Posted on 2013-01-30
3
621 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

630 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