t1logo4.gif - 7.56 K

magicsm.gif - 0.60 K

How To Add A Web Page Counter

T-One Internet provides an odometer style 'hit counter' for our customers web pages. To access the counter you will need to enter the following code on your web page where you wish to have the counter appear. Replace 'username' with your username with T-One. You will also need to replace 'pagename' with the name of the page you wish the counter to appear on. Don't forget to add the tilde ( ~ ) before your username and also be sure to enter the complete pagename with the htm or html extension.

The 'width=5' argument will set up the counter for 5 digits. For more or less just change the number to something different.

<img src="/cgi-bin/nph-count?width=5&link=/~username/pagename.htm">

It is also possible to hide the counter making it invisible to visitors to your web page. This is handy if you yourself wish to know the number of visitors to your web page, but don't want visitors to the page to see the counter. To make your counter hidden you would use the following code.

<img src="/cgi-bin/nph-count?width=5&link=/~username/pagename.htm" width=1 height=1>

This makes the counter hidden because it is only one pixel wide, and one pixel in height. Be sure to change the username to your username with T-One.Net and also change the pagename.htm to the actual web page filename that you are placing the counter on.

Once you have the code entered on your page for the counter you will also need to set up a new web page to view the counter from or the counter will do you absolutely no good.

  1. Set up a new web page and call it mycounter.html or something that you will remember as being your counter page.
  2. Copy the following code to this page again substituting your username and page name where called for in the new page.

    <html> <head> <title>Counter Page</title> </head> <body bgcolor="#ffffff"> <center> <font size=+3 color="#ff0000"><b><u><i>My Counter</i></u></b></font><p><br> <img src="/cgi-bin/nph-count?width=5&link=/~username/pagename.htm"> <p> </center> </body> </html>

  3. Save the pages and upload them to your site on T-One.Net

To check out your counter go to the web page with the hidden counter on it. Now go to the second page you set up to view the counter. The counter should be incremented. If not check and double check that you are using the correct username and pagename including the htm or html extensions. Both pages MUST have the same username and pagenames.

Click here to return to T-One Help.