Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Is there a DEFINITIVE Flash3 auto-detection?
From: Daniel Votino
Date: Fri, 8 Jan 1999 04:14:22 GMT

Oh yea, the attachment . . oops.  lol
 
~Daniel
<html>

<head>
<title>Browser Detection</title>
</head>
<script language="JavaScript">

function stopError() {
return true;
}

window.onerror = stopError;

function checkBrowser() {

if ((navigator.appVersion.substring(0,3) == "2.0") &&
(navigator.appName == "Netscape")) {
open("http://www.specifiedURL.com/help.html","_self");
}else
if ((navigator.appVersion.substring(0,4) == "3.01") &&
(navigator.appName == "Netscape")) {
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if ((navigator.appVersion.substring(0,4) == "3.03") &&
(navigator.appName == "Netscape")) {
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if ((navigator.appVersion.substring(0,4) == "3.04") &&
(navigator.appName == "Netscape")) {
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if ((navigator.appVersion.substring(0,3) == "3.0") &&
(navigator.appName == "Netscape")) {
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if ((navigator.appVersion.substring(0,1) == "4") &&
(navigator.appName == "Netscape")) {
if (navigator.appVersion.substring(0,5) == "4.0b1") {
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if (navigator.appVersion.substring(0,5) == "4.0b2") {
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if (navigator.appVersion.substring(0,5) == "4.0b3") {
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if (navigator.appVersion.substring(0,5) == "4.0b4") {
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if (navigator.appVersion.substring(0,5) == "4.0b5") {
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if (navigator.appVersion.substring(0,5) == "4.01a") {
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if (navigator.appVersion.substring(0,4) == "4.01") {
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if (navigator.appVersion.substring(0,4) == "4.02") {
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if (navigator.appVersion.substring(0,4) == "4.03") {
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if (navigator.appVersion.substring(0,4) == "4.04") {
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if (navigator.appVersion.substring(0,4) == "4.05") {
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if (navigator.appVersion.substring(0,4) == "4.06") {
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if (navigator.appVersion.substring(0,4) == "4.07") {
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if (navigator.appVersion.substring(0,4) == "4.08") {
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if (navigator.appVersion.substring(0,3) == "4.0") {
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if (navigator.appVersion.substring(0,5) == "4.5b1") {
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if (navigator.appVersion.substring(0,5) == "4.5b2") {
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if (navigator.appVersion.substring(0,3) == "4.5") {
open("http://www.specifiedURL.com/flashdetect.html","_self");
}}else
if ((navigator.appVersion.substring(22,25) == "5.0") &&
(navigator.appVersion.substring(0,3) == "4.0") &&
(navigator.appVersion.substring(17,21) == "MSIE")){
if (navigator.appVersion.substring(22,27) == "5.0b1"){
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if (navigator.appVersion.substring(22,27) == "5.0b2"){
open("http://www.specifiedURL.com/flashdetect.html","_self");
}}else
if ((navigator.appVersion.substring(22,25) == "4.0") &&
(navigator.appVersion.substring(0,3) == "4.0") &&
(navigator.appVersion.substring(17,21) == "MSIE")){
if (navigator.appVersion.substring(22,26) == "4.01"){
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if (navigator.appVersion.substring(0,3) == "4.0"){
open("http://www.specifiedURL.com/flashdetect.html","_self");
}}else
if ((navigator.appVersion.substring(23,22) == "3") &&
(navigator.appVersion.substring(17,21) == "Microsoft Internet Explorer") &&
(navigator.appVersion.substring(0,3) == "2.0")){
if (navigator.appVersion.substring(26,22) == "3.01"){
open("http://www.specifiedURL.com/help.html","_self");
}else
if (navigator.appVersion.substring(26,22) == "3.02"){
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if (navigator.appVersion.substring(26,22) == "3.03"){
open("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if (navigator.appVersion.substring(25,22) == "3.0"){
open("http://www.specifiedURL.com/flashdetect.html","_self");
}}else
if ((navigator.appName =="Microsoft Internet Explorer") &&
(navigator.appVersion.substring(0,3) == "2.0") &&
(navigator.appVersion.substring(17,25) == "MSIE 3.0")){
open ("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if (navigator.appVersion.substring(17,26) == "MSIE 3.02"){
open ("http://www.specifiedURL.com/flashdetect.html","_self");
}else
if ((navigator.appVersion.substring(0,3) =="3.0") &&
(navigator.appVersion(5,10) == "WebTV") &&
(navigator.appVersion(11,15) == "2.10")) {
open("http://www.specifiedURL.com/nonflashed.html","_self");
}else
alert('You are Using a Unknown Browser');
}
</script>


<body OnLoad="checkBrowser();" bgcolor="#FFFFFF" text="#0033CC" alink="#FF0000">

<p align="left"><font size="2" face="Arial"><b>If you are stuck on this page, it means we
could not properly identify<br>
your browser and auto-redirect you to the appropriate URL.</b></font></p>
<script LANGUAGE="JavaScript">

function stopError() {
return true;
}

window.onerror = stopError;

var bName = navigator.appName;
var bVer = parseFloat(navigator.appVersion);
if (bName == "Netscape")
var browser = "Netscape Navigator"
else
var browser = bName;
document.write("<font face=\"arial\" size=2 color=\"#0033cc\">");
document.write("<b><li>It is being reported that you are using ", browser, " ", bVer, ".</b>");

</script>


<ul>
<li><p align="left"><a href="http://www.specifiedURL.com/flashdetect.html" target="_self">If
reported to be using Netscape 3.0 or Higher, Click Here!</a> </p>
</li>
</ul>

<ul>
<li><p align="left"><a href="http://www.specifiedURL.com/flashdetect.html" target="_self">If
reported to be using Internet Explorer 3.0 or Higher, Click Here!</a></p>
</li>
</ul>

<ul>
<li><p align="left"><a href="help.html">If reported to be using something other than the
above, Click Here!</a></p>
</li>
</ul>
</body>
</html>

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]