Newsletter

KB Article

GP COM
Use of counters on your website

Use of counters on your website

A counter makes it possible for your visitors (and you) to see how many times your pages are being shown to a user. Counters are almost completely replaced by actual statistics programs with advanced features and easier interfaces, but they are still used occasionally.

If you insert this html code:

<img src="http://www.goldenplanet.com/cgi-sys/Count.cgi?df={domain name}-index.html" />

- where {domain name} is replaced by the name of your domain, for example testdom.com, which makes the code look like so:

<img src="/cgi-sys/Count.cgi?df=testdom.com-index.html">

- will give you a counter that looks like this:

Howto change the looks of the counter:

We have 5 different fonts that you can use. You can change the font by adding dd=(A,B,C,D or E) to the img html tag. Like so

<img src="/cgi-sys/Count.cgi?df={domain name}&dd=C">

denne counter:

Here are the 5 possible fonts:

TYPE A:
TYPE B:
TYPE C:
TYPE D:
TYPE E:

 

You can change the width of the frame around the counter by adding ft=X (where X is pixel width of the frame). For example will this generate a counter like below

<img src="/cgi-sys/Count.cgi?df={domain name}&dd=C&ft=0">



If you need more than one counter you simply change the counters data file name (df) til {domain name}-nameofcounter. Remember to include the name of your domain or sub folder in the name of the data file.

You can find more information about the counter on the programmers website.


Category: Control Panel