Using your Virtual Web Server Page Counter
To get started with a basic counter, all you need to do is add the following html code to the page on which you wish to have your counter reside:
<IMG SRC="http://www.your_domain.com/cgi/nph-count?link=index.html">
index.html should be the name of the html file that you are counting. You
can have a counter on every page of your web site if you wish, just remember to
change index.html to the name of each individual .html file that you add this to.
Can I reset a certain counter to zero?
There is a program on the virtual servers called "countadm" that can be used to change the totals on any counters you have on your web page.
The program has to be run from the server itself, so you'll have to telnet in to the server and type it in on the command prompt. It has built in
instructions, if you just type in "countadm" it will display help on how to use the program.
If you'd like, our service department can do this for you, just contact domainsupport@core.com
and explain that you'd like your counter adjusted and give the number you want added, removed, or set.
Can other web sites abuse my counter?
No. Our nph-count picks up your hostname and checks to make sure it is your domain that is attempting to use your counter.
If you would like to use some more advanced counter features, please read through the nph-count instructions below.
There are several arguments that can be used in your counter line to
get different effects. You can use more than one in each counter if
you desire. An example of that would be if I wanted to set the
width and the font for my counter:
<IMG SRC="http://www.your_domain.com/cgi/nph-count?width=5&font=reddot&link=index.html">
Which arguments are accepted by the program?
You can use any of the following arguments in your nph-count line.
- width=number
Specifies the number of digits in the resulting image. If you don't specify the width, the counter will use as many digits as necessary to display the page count.
Example:
<IMG SRC="http://www.your_domain.com/cgi/nph-count?width=5&link=index.html">
- link=URL of the page on which the counter is located
The link-argument is used to keep track of which web page you are counting. It should be unique for each page and each counter. A good choice is the URL of the page on which the counter image is located. This argument is required, and
should be set to the page that your counter is currently on and counting.
Example:
<IMG SRC="http://www.your_domain.com/cgi/nph-count?&link=index.html">
- font=DEFAULT
The font-argument is used to change the way your counter looks. You can change this to a variety of fonts that we supply for your use. They are shown at the end of this document.
Example:
<IMG SRC="http://www.your_domain.com/cgi/nph-count?&font=greenled&link=index.html">
- nodisp
Don't display. This will give you an invisible counter. For your own reasons, you may wish to count a page, but not have it display on the page that you're actually counting.
Example:
<IMG SRC="http://www.your_domain.com/cgi/nph-count?width=2&nodisp&link=index.html" width=0 height=0>
- noinc
Don't increment. This is useful if you want a static counter. If for some rea
son you want to have a fixed counter total, such as in the example above in conjunction with nodisp.
Example:
<IMG SRC="http://www.your_domain.com/cgi/nph-count?&noinc&link=index.html">
You can create a link on another page that shows you the counter results. You simply create a web page that contains the same counter information, but you would use the noinc argument, so that it doesn't advance tha counter.
For example, say you create a page called counters.html and you wish to see your index.html files invisible counter results here. The counter code on your counters.html page for that particular counter would be:
<IMG SRC="http://www.your_domain.com/cgi/nph-count?width=2&nodisp&noinc&link=index.html" width=0 height=0>
Am I stuck using the default counter image?
Each counter graphic has its own height and width by default, as you can see below. However, you can specify the HEIGHT and WIDTH inside the HTML-tag. By doing this, when your page with your counter is downloaded by a browser, the browser can allocate
space for the image while displaying the remainder of the page.
Example:
<IMG SRC="http://www.your_domain.com/cgi/nph-count?width=5&link=index.html" WIDTH=75 HEIGHT=20>
The following are the available fonts for your counter. You can change your counter font by adding or changing the font= argument to font=name, the name of each font is listed next to each font below.
 |
baby |
 |
bembo |
 |
blackled |
 |
blackodom |
 |
clown |
 |
countdown |
 |
counter |
 |
counter2 |
 |
doghouse |
 |
egg |
 |
enyagreen |
 |
enyared |
 |
greenled |
 |
greenled2 |
 |
greenscore |
 |
purpleled |
 |
reddot |
 |
redled |
 |
tiny |
 |
visitation |
 |
whiteled |