View Full Version : how to check screen res. ?
chorpe
April 19th, 2004, 11:48 AM
Hey all,
Is there a way I can test the screen resolution of the viewer's monitor on a splash page? So if a person is viewing at 800 x 600, when they click enter, they are taken to the low-res page and vice versa for 1024 x 768.
How would I set this up? I am thinking maybe javascript?
Thanks a head of time.
chorpe :q:
kokoi
April 19th, 2004, 12:56 PM
Ok I found a Javascript to detect your screen resolution but I don't believe you can use it to trigger a pop-up. But I'm totaly not a Javascript expert. So I will give you a link, hoping that it will help you further.
http://www.w3schools.com/js/tryit.asp?filename=tryjs_browsermonitor
chorpe
April 19th, 2004, 03:57 PM
thanks for the link up.
i am not exactly lookin for a pop-up. prolly more an if... else statement depending on the users screen settings. i'll see what i can come up with with this, though.
chorpe
beneath:the:sky
April 19th, 2004, 06:40 PM
I just wrote this Javascript code yesterday for a project I'm working on. Hope it helps.
function detectBrowser()
{
if ((screen.width>=1024) && (screen.height>=768))
window.location="highres.html";
else
window.location="lowres.html";
}
kode
April 19th, 2004, 08:31 PM
I'm moving this thread over to Client-Side (http://www.kirupaforum.com/forums/forumdisplay.php?f=19). ;)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.