SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Oct 2003
    Location
    UK.West Sussex
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mac Verification

    Hi,

    I was about to sign up to .mac (www.mac.com) on my PC but when I went to free trial, it informed me that to get the trial, I would have to sign up using a Mac. I do have a Mac but I was wondering whether anybody could help me with the script for that.

    What I would like is for someone on a PC to go to my site, and be given a customised message informing them that they can only browse the site using a Mac. I don't want a redirect, just something like the .mac system, but when somebody access's it on a Mac then the site will be displayed without a problem.

    If anyone can help I would appreciate it.

    Thanks,

    iPixel

  2. #2
    SitePoint Zealot
    Join Date
    Oct 2003
    Location
    USA
    Posts
    173
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if (navigator.appVersion.indexOf("Mac") > 0) {OS = "MacOS";}
    .
    2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
    2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
    2 | 3 | 4 | 5 | 6 | 7 | 8 | 9

  3. #3
    SitePoint Member
    Join Date
    Oct 2003
    Location
    UK.West Sussex
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What will that do if the user is on windows?

    Thanks.

  4. #4
    SitePoint Member
    Join Date
    Oct 2003
    Location
    UK.West Sussex
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    and how exactly do I use the code :S

    Where do I put it, and in what tags.

    Many thanks...


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
  •