does anyone have any good code for detecting screen resolution on a user's pc and directing them to different pages accordingly?
Announcement
Collapse
No announcement yet.
detecting screen resolution
Collapse
X
-
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 - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Comment