Announcement

Collapse
No announcement yet.

detecting screen resolution

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    detecting screen resolution

    does anyone have any good code for detecting screen resolution on a user's pc and directing them to different pages accordingly?

    #2
    Just search the web for "detecting screen resolution".

    Here's what I found in under 30 seconds from start to finish on Google:-

    Code:
    This checks to see if your screen is 1024X768. 
    If so you get sent to the high resolution web page. 
    If not, you go to the low resolution page.
    
    <SCRIPT language="JavaScript">
    <!--
    if ((screen.width>=1024) && (screen.height>=768))
    {
    window.location="highres.html";
    }
    else
    {
    window.location="lowres.html";
    }
    //-->
    </SCRIPT>
    Norman
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      cheers, I'll try that out

      Comment

      Working...
      X