A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: netscape V IE5

  1. #1
    Junior Member
    Join Date
    Oct 2000
    Posts
    22

    resolved

    Is there any way to assess which platform and browser a user is on and then automatically direct them to a movie suitable for that platform?

    Would be very grateful if anyone can point me in the right direction

    Cheers

  2. #2
    Senior Member
    Join Date
    Mar 2000
    Location
    London
    Posts
    961
    This javascript will redirect your browser to a different page (Macpage.html or PCpage.html):

    <script language="JavaScript">
    <!-- Platform Redirect Script -->
    <!-- Start Hiding //
    var isMac = (navigator.appVersion.indexOf("Mac") != -1) ? true : false;
    if(isMac) {window.location = "Macpage.html";}
    else {window.location = "PCpage.html";}
    // End Hiding -->
    </script>

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center