Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > IF flash installed THEN file.swf ELSE file.jpg

Reply
Thread Tools

IF flash installed THEN file.swf ELSE file.jpg

 
 
diablo
Guest
Posts: n/a
 
      06-18-2005
Hi

Is there a way to check if the user has flash installed so that you can say
if they have flash then show flash else show jpg

Thanks in advance

D


 
Reply With Quote
 
 
 
 
Lauri Raittila
Guest
Posts: n/a
 
      06-18-2005
in alt.html, diablo wrote:
> Hi
>
> Is there a way to check if the user has flash installed


No.

> if they have flash then show flash else show jpg


Yes. Put your jpg inside the object element.

Should work, and sometimes actually does.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Utrecht, NL.
Support me, buy Opera:
https://secure.bmtmicro.com/opera/bu...tml?AID=882173
 
Reply With Quote
 
 
 
 
Spartanicus
Guest
Posts: n/a
 
      06-18-2005
"diablo" <(E-Mail Removed)> wrote:

>Is there a way to check if the user has flash installed so that you can say
>if they have flash then show flash else show jpg


<object data="flash.swf" type="application/x-shockwave-flash"
width="100" height="100">
<img src="jpeg.jpg" width="100" height="100" alt="alt text">
</object>

--
Spartanicus
 
Reply With Quote
 
Travis Newbury
Guest
Posts: n/a
 
      06-18-2005
diablo wrote:
> Is there a way to check if the user has flash installed so that you can say
> if they have flash then show flash else show jpg


No, nothing reliable.

--
-=tn=-
 
Reply With Quote
 
Travis Newbury
Guest
Posts: n/a
 
      06-18-2005
Spartanicus wrote:
>>Is there a way to check if the user has flash installed so that you can say
>>if they have flash then show flash else show jpg

> <object data="flash.swf" type="application/x-shockwave-flash"
> width="100" height="100">
> <img src="jpeg.jpg" width="100" height="100" alt="alt text">
> </object>


Only works is the don't have flash installed. If they have the wrong
version of flash it doesn't work. While this _IS_ what the OP asked, I
would guess he forgot about people with the wrong version.

--
-=tn=-
 
Reply With Quote
 
Els
Guest
Posts: n/a
 
      06-18-2005
Travis Newbury wrote:

> Spartanicus wrote:
>>>Is there a way to check if the user has flash installed so that you can say
>>>if they have flash then show flash else show jpg

>> <object data="flash.swf" type="application/x-shockwave-flash"
>> width="100" height="100">
>> <img src="jpeg.jpg" width="100" height="100" alt="alt text">
>> </object>

>
> Only works is the don't have flash installed. If they have the wrong
> version of flash it doesn't work.


That's something I encounter quite often, actually. Isn't it possible
to cater for those occurences too?

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -
Now playing: Deep Purple - Smoke On The Water (Live)
 
Reply With Quote
 
Travis Newbury
Guest
Posts: n/a
 
      06-18-2005
Els wrote:

>>Only works is the don't have flash installed. If they have the wrong
>>version of flash it doesn't work.

> That's something I encounter quite often, actually. Isn't it possible
> to cater for those occurences too?


There are sniffers out there, but the only reliable way is to have some
one see if they can see a small flash movie (some animation) published
in the correct version. If they can't see the animation tell them to
upgrade. That is the ONLY reliable way if the flash is mandatory for
the site or application.

--
-=tn=-
 
Reply With Quote
 
SpaceGirl
Guest
Posts: n/a
 
      06-19-2005
Els wrote:
> Travis Newbury wrote:
>
>
>>Spartanicus wrote:
>>
>>>>Is there a way to check if the user has flash installed so that you can say
>>>>if they have flash then show flash else show jpg
>>>
>>><object data="flash.swf" type="application/x-shockwave-flash"
>>>width="100" height="100">
>>><img src="jpeg.jpg" width="100" height="100" alt="alt text">
>>></object>

>>
>>Only works is the don't have flash installed. If they have the wrong
>>version of flash it doesn't work.

>
>
> That's something I encounter quite often, actually. Isn't it possible
> to cater for those occurences too?
>


You can write a little JS to trap the Flash version. If they dont have
js installed either... well you have to add a js trap as well

--


x theSpaceGirl (miranda)

# lead designer @ http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #
 
Reply With Quote
 
SpaceGirl
Guest
Posts: n/a
 
      06-19-2005
Travis Newbury wrote:
> Els wrote:
>
>>> Only works is the don't have flash installed. If they have the wrong
>>> version of flash it doesn't work.

>>
>> That's something I encounter quite often, actually. Isn't it possible
>> to cater for those occurences too?

>
>
> There are sniffers out there, but the only reliable way is to have some
> one see if they can see a small flash movie (some animation) published
> in the correct version. If they can't see the animation tell them to
> upgrade. That is the ONLY reliable way if the flash is mandatory for
> the site or application.
>


Yep - only way without scripting anyway.

--


x theSpaceGirl (miranda)

# lead designer @ http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #
 
Reply With Quote
 
Travis Newbury
Guest
Posts: n/a
 
      06-19-2005
SpaceGirl wrote:

> Yep - only way without scripting anyway.



But all scripting methods are unreliable. If it is essential that the
Flash work, then you have to let the visitor tell you if they have the
right version. You can not rely on any automated method.


--
-=tn=-
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
else if vs else { if A C++ 8 08-28-2010 08:55 PM
What's the use of the else in try/except/else? kj Python 15 05-23-2009 02:18 AM
for: else: - any practical uses for the else clause? metaperl.etc@gmail.com Python 25 09-30-2006 11:01 PM
If / Then / Else Help Needed - More then one condition possible? tbird2340@gmail.com Javascript 15 09-21-2006 01:27 PM
Help. SessionID is x then y then x then y BodiKlamph@gmail.com ASP General 0 09-03-2005 03:02 PM



Advertisments