The Client Statistics Gatherer   1 | 2 | 3 | 4 | 5 | 6 

Share and share alike

If you want to use this form on your own site, feel free to do so. I only ask that you , so I can get idea of how useful it is, and so I can alert you to important updates, such as the ones I made recently for Netscape 6 and cookie support.

Here are the pieces you'll need:

To use it:

  1. Change the suffixes on the scripts above, if you haven't done so already, to get rid of the ".txt" portion.

  2. Put the getstats.pl script on your server, and update it to indicate the location of the log file you want to store data in (or be a geek and change it to use a database).

  3. Add the following to the top of your HTML document:

    <script type="text/javascript" language="JavaScript" src="getstats.js"></script>

    This assumes it's in your current directory, so fix the src attribute if it's not.

  4. Add the statistic form somewhere in the body of your document, and make sure the action attribute points to the right location for the getstats.pl script.

  5. Add an onLoad event in the body tag to modify the links, like so:

    <body onLoad="swapLinks()">

That's it! Try it out, have fun, and let me know if you find it useful, or if it just gives you headaches. Suggestions for improvements are, of course, welcome. I'll most likely just tell you I already thought of it, but was just too lazy to implement it. (No, really.)

Oh, so what's the answer to my original questions? Well, it turns out that more than 95% of the users that visit my page do so with 16-bit color and 800x600 resolution or higher. I always knew my following was ahead of their time.

Return to Projects Page

Copyright © 2001
Last updated: 15 Jun 2001 17:02:47