Creating Your Own Counter


There are four basic variables that you will need to define.
The string you will enter into your html document that will call the CGI script that will show your couter will look something like:
<img src="/cgi-bin/Count.cgi?ft=0&tr=1&dd=h&df=sample.dat" align=absmiddle>

  1. First the "ft" variable. This is used to define the border around your counter. This must be an integer, preferably between 0 and 10. Any greater number begins to look tacky. Here is an example of different borders. the first is a border of 0, the second of 10.
    Under each example is what the code for that example looks like.

    <img src="/cgi-bin/Count.cgi?ft=0&df=test.dat">

    <img src="/cgi-bin/Count.cgi?ft=10&df=test.dat">
  2. Second, the "tr" variable. This allows you to determin the background color of your counter. This must be defined as either a 0 or 1. 0 defines the background as black, 1 defines the background as an invisible pixal. Here are the examples :

    <img src="/cgi-bin/Count.cgi?tr=0&df=test.dat">

    <img src="/cgi-bin/Count.cgi?tr=1&df=test.dat">
  3. Third, the "dd" variable. This allows you to specify the kind of font that you want your digits to show up as. There are eight different fonts, here is an example of each and their variable assignment.
    A-
    <img src="/cgi-bin/Count.cgi?dd=A&df=test.dat">
    B-
    <img src="/cgi-bin/Count.cgi?dd=B&df=test.dat">
    C-
    <img src="/cgi-bin/Count.cgi?dd=C&df=test.dat">
    D-
    <img src="/cgi-bin/Count.cgi?dd=D&df=test.dat">
    E-
    <img src="/cgi-bin/Count.cgi?dd=E&df=test.dat">
    cd-
    <img src="/cgi-bin/Count.cgi?dd=cd&df=test.dat">
    cdr-
    <img src="/cgi-bin/Count.cgi?dd=cdr&df=test.dat">
    cdd-
    <img src="/cgi-bin/Count.cgi?dd=cdd&df=test.dat">
    bang-
    <img src="/cgi-bin/Count.cgi?dd=bang&df=test.dat">
  4. Lastly, there is the assignment of what data file you will put in. For all these examples above, I have used the "test.dat" data file. For your personal counter, you will use your internet user id followed by ".dat" an example would be "sysop.dat" This data file must first be created.
To get your data file created, you must email counters@california.com Simply ask for a data counter file, and it will be made as promptly as possible.

Your dat file will be named after your email name. Ex: johndoe@california.com would have a dat file named johndoe.dat

Now you must decide what you want your counter to look like, and creat the string to put into your html document.
Let's say you wanted a counter with no frame, a black background, the "H" font, and your id is slade. This is what it would look like:
<img src="/cgi-bin/Count.cgi?ft=0&tr=0&dd=H&df=username.dat">

For further, and more technical information on counters Click here.

To request access to run a CGI-BIN, Click here.

 

CaliforniaCom Inc.
Internet and Network Service Provider
Serving the San Francisco Bay Area
1624 Franklin Street, Suite 30
Oakland, CA 94612
U.S.A
Tel: 510.287.8450
info@california.com

home | access numbers | support | services & rates

 

 

Copyright (c) 1998 CaliforniaCom Inc. All rights reserved. Reproduction in whole or in part in any form or medium without express written permission of CaliforniaCom Inc. is prohibited. CaliforniaCom and the CaliforniaCom logo(s) are trademarks of CaliforniaCom Inc. Website logos, concept & design by webmaster