Hi,
I'm trying to
determine, what screen resolution people are using to view my site. I'm using
the following _javascript_ to set a cookie.
<script
language="_javascript_">
<!--
var wHeight, wWidth, sHeight, sWidth, bitDepth;
<!--
var wHeight, wWidth, sHeight, sWidth, bitDepth;
if
(document.all)
{ wHeight = document.body.clientHeight;
wWidth = document.body.clientWidth;
sHeight = screen.height;
sWidth = screen.width;
bitDepth = screen.colorDepth; }
else if (document.layers)
{ wHeight = window.innerHeight;
wWidth = window.innerWidth;
sHeight = screen.height;
sWidth = screen.width;
bitDepth = screen.colorDepth; }
{ wHeight = document.body.clientHeight;
wWidth = document.body.clientWidth;
sHeight = screen.height;
sWidth = screen.width;
bitDepth = screen.colorDepth; }
else if (document.layers)
{ wHeight = window.innerHeight;
wWidth = window.innerWidth;
sHeight = screen.height;
sWidth = screen.width;
bitDepth = screen.colorDepth; }
document.cookie =
"wHeight=" + wHeight + ";";
document.cookie = "wWidth=" + wWidth + ";";
document.cookie = "sHeight=" + sHeight + ";";
document.cookie = "sWidth=" + sWidth + ";";
document.cookie = "bitDepth=" + bitDepth + ";";
// -->
</script>
document.cookie = "wWidth=" + wWidth + ";";
document.cookie = "sHeight=" + sHeight + ";";
document.cookie = "sWidth=" + sWidth + ";";
document.cookie = "bitDepth=" + bitDepth + ";";
// -->
</script>
This provides me
with :
2003-06-09 13:19:28
10.1.18.108 - W3SVC1 GBSVG088 10.1.18.108 80 GET /index.htm - 304 0 139 372 0
HTTP/1.1 gbsvg088 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0;+Feedreader)
wHeight=850;+wWidth=1252;+sHeight=1024;+sWidth=1280;+bitDepth=16 -
in the IIS
logfile.
My question is how
do I parse "wHeight=850;+wWidth=1252;+sHeight=1024;+sWidth=1280;+bitDepth=16
-" with analog ????
I would like a
report in % of most popular screen resolution with maybe a pie chart
???
Kind
Rgds
Nick
Pye
************************************************************************************************************
This communication (including any attachments) contains information
which is confidential and may also be privileged.
It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s), please do not distribute,
copy or use this communication or the information.
Instead, if you have received this communication in error,
please notify the sender immediately and then destroy any copies of it.
Due to the nature of the Internet, the sender is unable to ensure
the integrity of this message and does not accept any liability
or responsibility for any errors or omissions (whether as the
result of this message having been intercepted or otherwise) in the contents of this message.
Any views expressed in this communication are those of the individual
sender, except where the sender specifically states them to be the views of the company.
************************************************************************************************************
