Trafix
Web Counter / Graphical Analysis of Visitors to a website.

<Applet Tags>
For Main Trafix Applet

<APPLET CODE=Main.class WIDTH=500 HEIGHT=320 archive="Trafix.jar" codebase="http://www.n.oman.btinternet.co.uk/">
<PARAM NAME="hostaddress" VALUE="http://www.n.oman.btinternet.co.uk/">
</APPLET>

Parameters
hostaddress
The web address of your java site containing your servlets, in this case the address as used by my web server.

For Trafix Counters on Web Pages

<SCRIPT>
w="na";
h="na";
c="na";
j="na";
v="Unknown";
ref = escape(document.referrer)+"";
</SCRIPT>

<SCRIPT language=javascript1.2>
h=screen.height;
w=screen.width;
v=navigator.appName;
j=navigator.javaEnabled()
</SCRIPT>

<SCRIPT>
function pr(n) {
document.write(n,"\n");
}
NS2Ch=0;
if (navigator.appName == "Netscape" && navigator.appVersion.charAt(0) == "2") {
NS2Ch=1;
}
if (NS2Ch == 0) {
r="&screen="+w+"x"+h+"&java="+j+"&brow="+v+"&ref="+ref;
pr('<IMG SRC="http://www.n.oman.btinternet.co.uk/servlet/Trafix?command=write&site=Guest'+r+'" WIDTH=99 HEIGHT=21>');
}
</SCRIPT>
<NOSCRIPT>
<IMG SRC="http://www.n.oman.btinternet.co.uk/servlet/Trafix?command=write&site=Guest" width="99" height="21" >
</NOSCRIPT>

Text to be amended as highlighted in red and blue. The red text indicates the web address of the site. The blue text indicates the name of the current counter.

Tabs Available


Sites
A Menu of pages/counters for the website.

History
A Graphical representation of the last seven days of visitors to the given page/counter.


Visits
An indication of the number of return visits to the given page, bars indicating 2 visits, 3 visits, etc. of the the given page by the same user.


Browsers
A Graphical representation and list of the browsers used to view the given page.


Screen Resolution
A Graphical represenation and list of the screen resolutions used to view the given page.


Referrers
A list of "referrers" for the given page, i.e where the visitor came from for each page.

<Necessary Text Files>
sites.txt

Main
Carnage
Reversi
Gemstone
Cards
Pie
Trend
Menu
Counter
Guest
Trafix

A list of all the counters to be used by this Trafix applet.
list.txt

-1#Nomanic Website#
0#HomePage#Main#
0#Applets#
0#Utilities#
0#Servlets#
0#Applications#
2#Carnage#Carnage#
2#Reversi#Reversi#
2#Gemstone#Gemstone#
2#Palace#Cards#
3#Pie Chart#Pie#
3#Trends Chart#Trend#
4#Simple Hit Counter#Counter#
4#GuestBook#Guest#
3#Menu#Menu#
5#Trafix#Trafix#

A Construction for the menu system in the applet, much the same as the parameter list as supplied to ClassX Menu. See ClassX Menu for more details.

Instructions for Use
Download all the Servlet Files.
Download theClient Files.
Compile the servlet files and install them on your java capable webserver.
Save all the Client files into your www directory.
Set the hostaddress parameter value to point to your servlet on the web server.
Create a list.txt and sites.txt file.
Add tag to bottom of each page to be countered.
Construct a seperate page for the Trafix applet.


Servlet Files
Download Trafix.java
Download item.java

Client Files
Download Trafix.gif
Download Trafix.jar