James L.
07-09-2003, 11:55 AM
Hey all,
I have a client who wants 2 versions of his site... one in Flash, which is to be the main one due to the animations he wants, and one in good ol' HTML.
What I am looking for is a script that will be placed on a blank html index page, which will detect if the person has the Flash 5 plug in. Basically, it would need to meet three criteria:
1) If the appropriate flash player is detected, go instantly to the Flash page (maybe just a redirect with the window.location method?).
2) IF the appropriate flash player is NOT detected, go instantly to the HTML page (again, would the window.location method work?).
3) Some type of system where if the user did not have Javascript enabled, the goold ol' HTML page is loaded.
I can read Javascript code quite well, but I am unfamiliar with the navigator object and its methods of plug in and version detection. Any help would be greatly appreciated!
Thanks all! :)
I have a client who wants 2 versions of his site... one in Flash, which is to be the main one due to the animations he wants, and one in good ol' HTML.
What I am looking for is a script that will be placed on a blank html index page, which will detect if the person has the Flash 5 plug in. Basically, it would need to meet three criteria:
1) If the appropriate flash player is detected, go instantly to the Flash page (maybe just a redirect with the window.location method?).
2) IF the appropriate flash player is NOT detected, go instantly to the HTML page (again, would the window.location method work?).
3) Some type of system where if the user did not have Javascript enabled, the goold ol' HTML page is loaded.
I can read Javascript code quite well, but I am unfamiliar with the navigator object and its methods of plug in and version detection. Any help would be greatly appreciated!
Thanks all! :)