...

View Full Version : Redirect Script: Adding Users With Mac's



surge42
02-05-2004, 07:16 PM
I'm working on a DHTML Flash PNG transparency here's an example http://www.webpronews.com/0513.html (not my work)

I've got it all worked out except one issue and that's compatibility. To be on the safe side I'd like to allow users with a PC using Internet Explorer 5.5 and higher to see this effect. My goal is to redirect all others to another page.

The following script will redirect based upon browser version which is fantastic. The only outstanding issue is that I'm concerned with MAC IE users.
I'd like to redirect them to the non DHTML page as well.

Got any idea how to add that function to this script?

Here's the code I'm going to use...

<script>

var browser_type=navigator.appName
var browser_version=parseInt(navigator.appVersion)

//if NS 4+
if (browser_type=="Netscape"&&browser_version>=4)
window.location.replace("http://www.goes_to_the_no_DHTML_popup_page.html")


//if IE 5+
else if (browser_type=="Microsoft Internet Explorer"&&browser_version>=5)
window.location.replace("http://www.goes_to_the_wicked_cool_page_with_dhtml.html")



//Default goto page (NOT NS 4+ and NOT IE 5+)
else
window.location="http://geocities.com"

</script>


Thanks in advance for your comments / thoughts
Scott
West Chester PA

Antoniohawk
02-06-2004, 01:38 AM
Tweak to your liking.
http://www.javascripter.net/faq/operatin.htm



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum