to show image or to show flash

D

Disco Octopus

Hi,

I would like to know if there is the ability to have a flash embeded, but
when the flash is not available on the browser, then i want to show an
image.

Thanks
 
J

j

Disco Octopus said:
Hi,

I would like to know if there is the ability to have a flash embeded, but
when the flash is not available on the browser, then i want to show an
image.

Thanks

might be using the object tag, or you could do some flash detect in php
and load either image or swf based on that

//pseudo code:
if $flashpresent{
$htmlsource="emded/object\"my.swf\" etc"
} else {
$htmlsource="imgscr=\"blahblah.jpg\"" etc
}


j
 
S

SpaceGirl

Disco Octopus said:
Hi,

I would like to know if there is the ability to have a flash embeded, but
when the flash is not available on the browser, then i want to show an
image.

Thanks

Yes. Use META REFRESH in the head of your page (google for it).

Create an HTML page that contain a tiny flash movie, and meta refresh with a
5 second delay. The flash movie contains a redirect to the "flash version"
of your site, while the meta refresh contains a redirect to a non-flash
version of your site. So, if the little flash movie containing a refresh
manages to load and redirects, obviously the user has Flash installed. If,
after 5 seconds, the flash movie has not managed to redirect the user,
either they are on a massively slow connection or dont have Flash installed;
in both cases a non-flash site would be better anyway.
 
T

Toby A Inkster

Disco said:
I would like to know if there is the ability to have a flash embeded, but
when the flash is not available on the browser, then i want to show an
image.

<object data="flash.swf">
<img src="image.png" alt="text">
</object>
 
D

Disco Octopus

Disco said:
Hi,

I would like to know if there is the ability to have a flash embeded,
but when the flash is not available on the browser, then i want to
show an image.

Thanks

I have craeted the following page, but it is not doing what I expect...

http://mycoolfish.com/t/cow.html

In IE 5.5 I am seeing the <object> - this is cool.
In operar 7.x I am seeing the <embed> - this is cool too.
In Netscape Communicator 4.79 I see the cow.gif - this is cool too.
In Lynx I am not seeing anything - I expect (well, was hoping) to see at
least one of the alt= texts. (dunno which one, was trying to guess)
In the new-ish mozillas (firfox 0.7, 0.8, netscape 7.1, 7.0, mozilla 1.4,
1.5, 1.6) I am not seeing anything. I would at least like to see the
"cow.gif" if not the flash files.

Any ideas?
Thanks
 
T

Toby A Inkster

Disco said:
I have craeted the following page, but it is not doing what I expect...

http://mycoolfish.com/t/cow.html

As per my other post, get rid of the <embed> tag altogether. It's only
needed by NN4 and below and it's not part of any HTML standard. Secondly
add the attribute 'data="file.swf"' to the <object> tag. This will load
the flash file in Opera and Mozilla-based browsers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top