Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | FLASH: javascript to redirect MAC_MSIE |
From: | Willem van den Goorbergh |
Date: | Mon, 13 Dec 1999 01:34:52 GMT |
Dear list,
To redirect Macintosh MSIE user I use the following script:
<SCRIPT language="JavaScript">
<!--
//thanks to colin moock and others
//
function checkMacMsie(){
// *****begin name of the sorrymacmsie-page*****
sorrymacmsie = "../../resource/mac_msie.htm"
// ***** end name of the sorrymacmsie-page*****
if(navigator.userAgent.indexOf("MSIE") != -1 &&
(navigator.appVersion.indexOf("Mac") != -1 ||
navigator.appVersion.indexOf("PPC") != -1)){
window.location=sorrymacmsie;
}
}
// this script is supposed to do the following:
//IF useragent of browser string does NOT NOT contain msie
//AND appversion of browser string does NOT NOT contain mac
//OR appversion of browser string does NOT NOT contain ppc
//load the page named in the variable sorrymacmsie in this window
//all other browser-platform combo's should stay on this page
//-->
</SCRIPT>
</HEAD>
<BODY bgcolor="#FFFFFF" onLoad="checkMacMsie()">
It works nicely on my system (PPC 8500 with both MSIE 4.5 and NN
4.03).
Any one cares to check how things go on other platform-browser
combinations.
My site is in Dutch but you are rewarded with an English .swf ;-)
http://www.geografiek.nl choose portfolio -> NEDECO -> 'kaart' (the
link in the last line)
TIA
Willem
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone:
(+31)30-2719512
or by telefax: (+31)302719687
Visit our 'flashed' website at: http://www.geografiek.nl
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 help
![at](/sites/all/modules/spamspan/image.gif)
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]