Routing users to different indexes based on their resolution

Discussion in 'Web Design and Development' started by sbryan, Feb 5, 2009.

  1. sbryan macrumors member

    Joined:
    Jun 6, 2007
    #1
    I'm aware that alternating style sheets exist and I can control them with some Javascript, however, I don't think this will work for the kind of content I have on my website, namely:

    • Different sized buttons exhibiting a rollover image
    • Different size gallery thumbnails with different links to images

    So is it possible to use a script to reroute users to /mysite/large and /mysite/small based on their desktop resolutions? (Large being equal to 1280x1024 or larger)

    Thanks!
     
  2. snickelfritz macrumors 65816

    snickelfritz

    Joined:
    Oct 24, 2003
    Location:
    Tucson AZ
  3. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #3
    There are indeed ways (as linked above). Just realize people don't always use their browsers at full screen, especially Mac users so you'll want to detect smaller sizes. Also, so it's clear you'll be detecting the browser window size, and not the computer screen resolution.
     
  4. r.j.s Moderator emeritus

    r.j.s

    Joined:
    Mar 7, 2007
    Location:
    Texas
    #4
    I am wondering something similar ...

    My question is: Can you tell it to use a different stylesheet based on resolution rather than a different page?
     
  5. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #5
    Yup, just look up style sheet switcher and tie that to a screen resolution detecting script and in you're in business.
     
  6. r.j.s Moderator emeritus

    r.j.s

    Joined:
    Mar 7, 2007
    Location:
    Texas
    #6
    So obvious it should have whacked me in the face ... thanks.
     

Share This Page