Page 1 of 1

Finding client screen resolution

Posted: Wed Jun 23, 2004 1:34 pm
by Vash the Stampede
I was wandering if there is a way to find the clients screen resolution when they connect to your site? I was going to try to have my site ajust some images depending on their srceen resolution, like 1024x768, 800x600 and so on. Thanks

Posted: Wed Jun 23, 2004 1:36 pm
by markl999
http://www.phpbuddy.com/article.php?id=8 might help (not really looked at it myself, but the topic seems right ;))

Posted: Wed Jun 23, 2004 2:18 pm
by Weirdan

Code: Select all

alert(screen.width+'x'+screen.height);

Posted: Thu Jun 24, 2004 10:08 am
by Vash the Stampede
Thanks guys, I had completly forgot that php is server side and that I would have to use a client side lang. like javascript. :D