#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    261
    Rep Power
    14

    CSS fot mac and pc platform


    Hi all,

    Just made a tables site runs oke on a pc but not on a mac.

    So now i want to create a mac-css. How can i include the right css-file based on an user platform?????

    Javascript or php??
  2. #2
  3. a rootin', tootin', shootin'
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Feb 2004
    Location
    location.href="hame"
    Posts
    3,475
    Rep Power
    100
    Javascript:

    alert(navigator.platform) ;
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    261
    Rep Power
    14
    thnx,

    Found a way to do it with php.

    see article
  6. #4
  7. a rootin', tootin', shootin'
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Feb 2004
    Location
    location.href="hame"
    Posts
    3,475
    Rep Power
    100
    the only downside is that some browsers can spoof others, eg Opera can pretend to be IE or Moz. You can only eschew this bu using Javascript object detection:

    Code:
    if (document.all && document.getELementById && !document.layers) isIE = true ;
    if (!document.all && document.getELementById && !document.layers) isMoz = true ;
    if (document.all && document.getELementById && document.layers) isOp = true ;
    kapiche?

IMN logo majestic logo threadwatch logo seochat tools logo