Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: Checking if a visitor has the flash plugin


Message #1 by "Rolf Bohlke" <rolf@p...> on Mon, 4 Feb 2002 19:21:25
Yep..  =)

oh wait.. you what to know how?   hehehe =)

Without JavaScript:
In your Index.htm (Frontpage) put this into the MetaTags:

<META HTTP-EQUIV="Refresh" CONTENT="seconds_until_refresh; 
URL=non_flash_url">

Substitute the 'non_Flash_url' for your non_flash main page.
and the 'Seconds_Until_refresh' to like 3-5 seconds.

AND in the movie; In the first frame, in the actions tab, add:
Get URL ("url_for_the_flash_file")

If the user can't read the Flash file the refresh from the HTML
will kick in and display the Non-Flash site.. If they CAN view
Flash.. the Movie will redirect to a new page with out the
Refresh HTML tag.. and bingo.. full proof. =)

but.. (depending on how into HTML/Flash you are..)
there's a way normally to do it though JavaScript

Here's a link to a place you can DL the JS Script:
http://www.moock.org/webdesign/flash/detection/moockfpi/
http://www.xs4all.nl/~ppk/js/flash.html


But as a word of warning:

Flash cannot be detected in Netscape 2, Explorer 3 and 4 on Mac, Konqueror 
and Ice Browser via javaScript.. but the 'refreash' meta tag has been around 
since Version 1.1 of NetScape.. =)

The Flash version cannot be detected in Opera 5 on Mac and Linux, iCab and 
Hotjava via JavaScript.








>From: "Rolf Bohlke" <rolf@p...>
>Is there a way to check if a visitor has the flash plugin installed and if
>necesary rederict him to a non flash site
>$subst('Email.Unsub').




-=-=-=-=-=-=-=-=-=---===/// The PogoWolf \\\===---=-=-=-=-=-=-=-=-=-=-
//    "Amateurs built the ark, Professionals built the Titanic."    //
//      http://www.pogowolf.com  |X| http://www.4thegames.net       //
//                http://www.vinylgrooveband.com                    //
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=----=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


  Return to Index