Flasher Archive

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


Subject: FLASH: Detect script spawns extra HomePage
From: Larry Eisenstein
Date: Wed, 20 Oct 1999 18:01:23 +0100

Hey all,

I'm using a Flash detect script below to automatically send visitors to
either a Flash version or an HTML version
of the same site that I've designed. In Netscape 4.6 the Flash redirect
works seamlessly but the HTML redirect spawns 2 windows of the same Home
Page. I can't figure out why. Any suggestions would be greatly appreciated.
When I type in the nonflash URL directly in Netscape I don't get this
problem. Only when using the
detection script.

Here's the script below.

Thanks,
Larry

<html><head><title></title>
<SCRIPT LANGUAGE ="JavaScript">
<!--
var e='';
var staying="false";
window.onerror=null;
var ShockMode = 0;
if(parseInt(navigator.appVersion)<=4 && navigator.appName=="Netscape"){
if (navigator.mimeTypes &&
navigator.mimeTypes["application/x-shockwave-flash"] &&
navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
if (navigator.plugins && navigator.plugins["Shockwave Flash"])
ShockMode = 1;
}
}
// -->
</script>
<SCRIPT LANGUAGE=VBScript>
on error resume next
ShockMode = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))
</script>
<SCRIPT LANGUAGE ="JavaScript">
if(ShockMode)
{
self.location.href = "http://www.fantasyteam.com/flash/";
}
else
{
self.location.href = "http://www.fantasyteam.com/index_noflash.htm";
}
</script>
</head>
</html>




flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


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