PDA

View Full Version : [PHP or Javascript]Flash Detection



dawizman
June 21st, 2003, 22:30
Hi all.

I am looking for a way to detect if a browser has flash installed, and what version if it does. I am basically making a site with a nice flash header and it will play the right flash movie depending on what version they have, but if they dont have flash installed, I want it do display just a normal page.


Thanks in advance.

kabatak
June 22nd, 2003, 07:04
you can create 2 pages... page1.html and page2.html

on page1, place a 1x1 flash file that has an action of getURL("page2.html"); on frame 1.

page2.html will be the main page with flash

What happens here is that if the user doesnt have flash, he stays in page1, if he have flash, he is redirected to page2.

dawizman
June 22nd, 2003, 12:46
Thnx kabatak . Never thought of doing it that way.