SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Nov 1999
    Location
    NH,USA
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, could someone give me a place to get the code to redirect 3.0 browser users to an alternate site for them - and do you have to call the index page something else instead of what you called the 4.0 version?

    Thanks for any help!

  2. #2
    SitePoint Member
    Join Date
    Aug 1999
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this....

    <script language="javascript">
    browserName = navigator.appName;
    browserVer = parseInt(navigator.appVersion);
    if (browserName == "Netscape" && browserVer >= 3) browserVer = "1";
    else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) browserVer = "1";
    else browserVer = "2";

    if (browserVer == 2) {
    // .... your redirect code here...
    }

    </script>

    If that doesn't work for you, look at http://www.javascripts.com They have tons of redirects.

    Richard

    ------------------
    rperry@tioloco.com

  3. #3
    SitePoint Member
    Join Date
    Nov 1999
    Location
    NH,USA
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Richard!


Bookmarks

Posting Permissions

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