Thanks Steve. It worked out perfectly.
Nelson
Original Message Follows
From: "Steve Reich" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: CF-Talk <[EMAIL PROTECTED]>
Subject: Re: Slightly OT: Tracking Usage
Date: Thu, 24 May 2001 16:25:29 -0400
Received: from [207.31.122.140] by hotmail.com (3.2) with ESMTP id
MHotMailBCD6C8AA006E40043761CF1F7A8C6CF60; Thu May 24 14:32:17 2001
Received: from houseoffusion.com ([207.31.122.140]) by
www.houseoffusion.com (Post.Office MTA v3.5.3 release 223 ID#
0-54969U100L100S0V35) with ESMTP id com for
<[EMAIL PROTECTED]>; Thu, 24 May 2001 16:37:23 -0400
>From [EMAIL PROTECTED] Thu May 24 14:32:55 2001
Message-id: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
> Sorry about the OT post but I am a little stumped. I was wondering if
anyone
> out there knows how to find out the following information about visitors
to
> a web site:
>
> Screen Resolution: (ie. 1024x768, 800x600)
>
> Color Depth: (ie. 16-bit, 32-bit, 256 colors, etc...)
For screen resolution and color depth you can use this javascript snippet
(works in "both" browsers)
<~SNIP~>
<!--
function GetSysInfo() {
window.onerror=null;
if(navigator.javaEnabled() && (navigator.appName != "Microsoft Internet
Explorer"))
{
vartool=java.awt.Toolkit.getDefaultToolkit();
addr=java.net.InetAddress.getLocalHost();
host=addr.getHostName();
ip=addr.getHostAddress();
alert("Your host name is: \'" + host + "\'\nIt\'s IP adress is: " + ip);
}
colors = window.screen.colorDepth;
document.InfoForm.color.value = Math.pow (2, colors);
if (window.screen.fontSmoothingEnabled == true)
{document.InfoForm.fsmooth.value = "Yes"; }
else {document.InfoForm.fsmooth.value = "No";}
document.InfoForm.browser.value = navigator.appName;
document.InfoForm.version.value = navigator.appVersion;
document.InfoForm.colordepth.value = window.screen.colorDepth;
document.InfoForm.width.value = window.screen.width;
document.InfoForm.height.value = window.screen.height;
document.InfoForm.AppCode.value = navigator.appCodeName;
document.InfoForm.platform.value = navigator.platform;
if (navigator.javaEnabled() < 1) {
document.InfoForm.java.value="No";
}
if (navigator.javaEnabled() == 1) {
document.InfoForm.java.value="Yes";
}
}
// -->
Current resolution
x
Browser:
Version:
Color depth:
bit
Code:
Plataform:
Colors:
Java enabled:
Anti-aliasing fonts:
<~SNIP~>
As far as HTTP referral goes, I assume you are using CF since you are
posting to the CF-Talk list, so you can use the CGI variable HTTP_REFERER,
which will give you the URL of the referring page
HTH,
Steve
~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists