Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2004
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Redirect Script: Adding Users With Mac's

    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
    Don't Stop Learning!

    Never Give Up!

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    Kansas City, Kansas
    Posts
    1,518
    Thanks
    0
    Thanked 2 Times in 2 Posts


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •