Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: page detect |
| From: | Patrick Dunne |
| Date: | Wed, 13 Jan 1999 05:14:29 GMT |
Hi John,
I'm referring to this detection script:
(It's preceded by this text: Sending users to one page if they have
Shockwave and another if they don't
The script in this HTML page loads one page into the window if the user's
browser has either ActiveX or the Shockwave Flash 2.0 plug-in, and to
another page if the user has any other JavaScript-enabled browser. Users
with non-JavaScript browsers see the traditional visible triage.)
<HTML>
<HEAD>
<TITLE>The Portal</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!-- use this comment tag to hide the enclosed code from old browsers.
//Look for a version of Internet Explorer that supports ActiveX (i.e., one
that's
//running on a platform other than Mac or Windows 3.1) or a browser that
supports
//the plugin property of the navigator object and that has Shockwave
Director
//installed.
if ((navigator.appName == "Microsoft Internet Explorer" &&
���navigator.appVersion.indexOf("Mac") == -1 &&
���navigator.appVersion.indexOf("3.1") == -1) ||
��(navigator.plugins && navigator.plugins["Shockwave for
Director"].description.indexOf["6.0"] != -1)){
���//Load a pre-defined HTML page with Shockwave in it into the browser
window.
���window.location='shocked.html';
}
else {
���//Load a pre-defined HTML page without Shockwave into the browser window.
���window.location='nonshocked.html';
}
// Close the comment tag. -->
</SCRIPT>
</HEAD>
<BODY>
<CENTER>
<H3><BR>
<FONT SIZE=3>requires <A
HREF="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version
=ShockwaveDirector">Shockwave Director</A></FONT></H3>
<H3>
</CENTER>
</BODY>
</HTML>
The text before the script sums up very neatly what I would like to do, ie.
send users to a flash page if they have either a relevant plugin for Flash
3.0 or Active-X.
I used Flash 3 to create a movie, Aftershock to create the html and then I
added an html page with the above script in it to either point the user to
the Flash page or to an alternate page without flash.
I changed
�window.location='shocked.html';
to
�window.location='myshockedpage.html';
and
�window.location='nonshocked.html';
to
�window.location='mynonshockedpage.html';
Do I have to change ["Shockwave for Director"]
so that it includes the correct name for Flash 3.0 plugins and ActiveX?
If so, what do I change it to?
TIA
----------
>From: John Croteau <croteau
>To: flasher
>Subject: Re: FLASH: page detect
>Date: Tue, Jan 12, 1999, 11:56 AM
>
> Hi Patrick,
>
> Which detection script are you referring to?
> The only one actually displayed at FC is an Archive of my Flash 2 only
> one. Others are linked. Colin has one that isn't linked on the Resource
> see http://colinmoock.iceinc.com/webdesign/flash/
>
> If you are trying to duplicate the one actually used at Flash Central
> then you should know it detects for both Flash 2 and Flash 3 (We still
> have the Flash 2 version of the site but it is not updated).
>
> ----------- -----------------------
> John Croteau croteau
> ------------- -------------------------
> FlashTek (Advanced Websites with Flash) http://www.FlashTek.com/
> Flash Bible (Fast track to good Flash) http://www.FlashBible.com/
> Flash Central(The Universe Starts Here) http://www.FlashCentral.com/
> The Flash Tech Resource (Tech Notes) http://www.FlashCentral.com/tech/
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> ------------------------------------------------------------------------
> To UNSUBSCRIBE send: unsubscribe flasher in the body of an
> email to list-manager
> N.B. Email address must be the same as the one you used to subscribe.
> For info on digest mode send: info flasher to list-manager
>
------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manager
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manager
Replies
Re: FLASH: page detect, Charlene Reese
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

