[thelist] Recording screen resolution in web logs

Bret Daniel BDaniel at Chemnavigator.com
Fri Nov 22 10:23:00 CST 2002


here are some JS items

<br><br>Javascript stuff<br><br>
<script language="JavaScript">
document.write("You are browsing this site with: "+ navigator.appName)

document.write("BROWSER: ")
document.write(navigator.appName + "<br>")
document.write("BROWSERVERSION: ")
document.write(navigator.appVersion + "<br>")
document.write("CODE: ")
document.write(navigator.appCodeName + "<br>")
document.write("PLATFORM: ")
document.write(navigator.platform + "<br>")
document.write("REFERRER: ")
document.write(document.referrer + "<br>")

document.write("SCREEN RESOLUTION: ")
document.write(screen.width + "*")
document.write(screen.height + "<br>")
document.write("AVAILABLE VIEW AREA: ")
document.write(window.screen.availWidth + "*")
document.write(window.screen.availHeight + "<br>")
document.write("COLOR DEPTH: ")
document.write(window.screen.colorDepth + "<br>")
</script>



yo can form a 1px gif to load with a query string to record in the log like:

<IMG SRC="your1px.gif?<<javascriptresults>>">

and then search the log for your1px.gif

hope this helps

-B

-----Original Message-----
From: Francois Jordaan [mailto:francois.jordaan at wheel.co.uk]
Sent: Friday, November 22, 2002 8:08 AM
To: 'thelist at lists.evolt.org'
Subject: [thelist] Recording screen resolution in web logs


I want to add some code to a website so that I can survey for the next 3
months the users' browser specs. This will give me stats to work with for a
planned redesign.

Regular web log gives me browser brand & version, but I want screen size
(and ideally window size). I've seen this done but can't remember where.

Would this work?
a. write some Javascript that docwrites a query string onto an image on the
home page, something like ?x=640&y=480
b. Server web log records the query string
c. report off the web log in due course

francois

_____________________________________________________________________
This e-mail has been scanned for viruses by MessageLabs.
--
* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !



More information about the thelist mailing list