Online Support Centre

Using web page hit counters

A page hit counter provides an easy and effective way of keeping track of the number of people visiting your site. A small image will appear as follows on your page and increment each time somebody visits your page.

If you want a counter on your page.

  1. Click on this HTML code then copy and paste it into your page.
  2. Click Start, Programs, Accessories, then NotePad or open TextEdit on Mac OS X (Note: SimpleText will not save the file in HTML format).
  3. Click File and Open and select the HTML page that you want to add the counter to.
  4. Select where you want the counter to be displayed on the page, then click Edit and Paste.
  5. Within the line of HTML you have just inserted find df=count.dat and replace the count part with your username. Example: If your username is jbloggs@madasafish.com, then the text will read df=jbloggs.dat
  6. Click File and Save make sure that the Save as type is set to All files. If using TextEdit on Mac OS X, click Format then Make Plain Text before saving.
  7. Upload the file to your website. The counter will be displayed starting from Five.

Counter 1

OTHER THAN COUNT.DAT DO NOT ALTER ANY OF THE HTML SCRIPT YOU HAVE PASTED INTO YOUR PAGE UNLESS YOU HAVE READ THE INSTRUCTIONS BELOW AND KNOW WHAT YOU ARE DOING!!

The next section explains what the HTML you have just pasted actually means and how to alter the appearance of the counter.

ft=9

ft means frame thickness. If you want to wrap the counter with a ornamental frame, you define the frame thickness like this. Here 9 is the thickness of the frame in pixel. This value can be any positive number more than 1. For nice 3D effect, use a number more than 5. If you do not want frame, just use ft=0.

frgb=69;139;50

frgb defines the frame colour. Here 69 is the red component, 139 is the green component and 50 is the blue component of the colour. The valid range of each component is >=0 and <= 255. the components must be separated by ; character. note even if you define ft="0," these components must be present, just use 0;0;0 in that case.

tr=0

tr defines if you want transparency in the counter image. here tr=0, that is I do not want transparent image. If you want transparent image, define tr=1. Note that Count.cgi, does not care if your digits are transparent GIFs or not. You must tell explicitly which colour you want to make transparent. trgb=0;0;0

if tr=1, then black colour of the image will get transparent. Here 0;0;0 are the red, green and blue component of the colour you want to make transparent.

wxh=15;20

wxh string defines the width and height of an individual digit image. Each digits must have the same width and height. If you like to use digits not supplied with my distribution, find out the width and height of the digits and specify them here.

md=6

md defines the maximum number of digits to display. It can be >= 5 and <= 10. if your counter number is less than md, the left digits will be padded with zeros. here md="6" means, display the counter with maximum 6 digits. if you do not want to left pad with zeros, use pad="0" instead of md="6." note you can either use md="some_number" of pad="0," in this field, you can not use both. if you use pad="0," then the digits will be displayed exactly without padding.

dd=A

dd means digit directory. A indicates, it will use my LED digits located at the directory A. The base of the directory A is defined with DigitDir at step 1.

st=5

st means start, that is start the counter with this value. st is only significant if you compiled the program with -DALLOW_FILE_CREATION. If you compiled with this option, the datafile will be created to the directory defined by DataDir in the config.h file and 5 will be written to it. This option is new in this release.

sh=1

sh means show. If sh=0, then no digit images will be displayed, however a transparent 1x1 transparent GIF image will be returned, which will give the illusion of nothing being displayed. Although it will seem that nothing is displayed, the counter will be incremented correctly. This option is new in this release.

df=count.dat

finally df means data file. This is the file which will contain the counter number.

 


Has this page helped you solve your problem? Your feedback helps us to improve the help we provide.

Rate this page : happy neutral unhappy

Please note: We cannot reply to individual feedback through Rate My Page. If you need more help with a problem please use Contact Us.


Using HTML forms


Customer Care: 0844 395 0830 (8am-8pm, 7 days a week, except Christmas Day and New Years Day)
Technical Support: 0844 395 0830 (24 hours a day, 7 days a week)
Copyright ©Madasafish