[thelist] What screen size are my visitors using

Maximillian Schwanekamp anaxamaxan at neptunewebworks.com
Wed May 26 23:51:25 CDT 2004


-------------------------------
>the most popular screen
> resolution (eg. 800 x 600) of users is.
> Ideally, I'd like to log visitors to the existing website

This is a solution I used:
determine the width and height of the window, and round it down to a
number divisible by 50
document.write() an img tag to a non-existent GIF with the width and
height in a query string, ie, <img src="/noimage.gif?800|600" width="0"
height="0" /'>
look at the 404 report in the stats report
-------------------------------

Clever idea.  Though if you're doing that, you might as well call a script
and log the info in a database... something like
var noimg = new Image();
noimg.src = "log_script.php?width=800&height=600";


Maximillian Von Schwanekamp
Dynamic Websites and E-Commerce
www.NeptuneWebworks.com
voice: 541-302-1438
fax: 208-730-6504





More information about the thelist mailing list