Solved

show image instead of flash if flash not installed

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now