dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: java_redirect

  1. #1

    java_redirect

    can anyone point me to a simple javascript
    that sniffs for OS and then redirects?
    for example, i simply need to sniff for MACS
    and direct them to a different page, all the stuff i'm
    finding is incredibly complex.
    John Jakubowski
    wombat|creative

  2. #2
    Senior Member nepdude's Avatar
    Join Date
    Feb 2001
    Location
    Canada
    Posts
    960
    try this
    nObOdY dIeS A vIrGiN,
    LIfE sCrEwS uS aLL

  3. #3

    hmmmm

    this looks good. not being a code monkey shall i ask a simple question:

    <!-- Begin
    page = ((navigator.platform.indexOf('Win') > -1) ? "win.html" : "mac.html");
    window.location=page;
    // End -->
    </script>

    so one would replace the redirect pages for "win.html" and "mac.html"?
    John Jakubowski
    wombat|creative

  4. #4

    Thanks

    just answered my own question---
    YOU ROCK ! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you! thank you

    (the reason we needed this (if youre interested is.. we have a fullscreen mode js that will not work on the MAC, we have to send MAC users to a different index. thanks so much))
    John Jakubowski
    wombat|creative

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