Help With

How To

Settings & Misc

Help Wurd



Counters for PWP @att.net

You can customize your personal Web page counter by giving it attributes describing background color, foreground color, and style. In addition, standard height and width HTML tags can be added to modify the display size of the counter. However, this can distort the counter images, so we recommend that you do a custom counter instead. We've covered the following topics in this document:

Back to top


Basic Counter

The basic code for a counter is:
<img src="/cgi-bin/counter.gif">

This will give you a black counter on a transparent background with a raised border, as shown below:

basic

If you want to customize your counter, you can add parameters, each separated by an ampersand (&). Start the first parameter with a question mark (?). The available parameters are shown below:

Parameter Effect
fg= foreground color
bg= background color
nfr= border
st= style
private indicates a custom counter image
counterid unique counter identifier.

For example, if you add the parameter for no border to the basic code shown above:
<img src="/cgi-bin/counter.gif?nfr=1">
You will get a counter that looks like this:
basic

You could also add a background and foreground color to the basic counter code:
<img src="/cgi-bin/counter.gif?fg=255,0,0 &bg=255,255,255&counterid">
Where the foreground is set to red and background to white. You will get a counter that looks like:
red text

If you reverse the foreground and background:
<img src="/cgi-bin/counter.gif?fg=255,255,255 &bg=255,0,0&counterid">
You'll get this counter:
red

For information on color codes, see Color. Pay particular attention to the conversion chart. It will help you convert colors shown in HEX (the way colors are identified on a page) to the RGB value needed for the pwp counter.

Note: Do not leave any blank spaces in your counter syntax, if you need separation, use the underscore (_) character.

For example, if your counterid is your e-mail ID and url, an incorrect usage would be:
<img src="/cgi-bin/counter.gif?st=fun&emailid url">

The correct code should be:
<img src="/cgi-bin/counter.gif?st=fun&emailid_url">

Back to top


Styles

Instead of setting background and foreground colors, you can use one of the provided styles. There are 10 pre-designed styles available for your counter. The code for using styles looks like this:
<img src="/cgi-bin/counter.gif?st=stylename&counterid">

Or, without a border:
<img src="/cgi-bin/counter.gif?st=stylename&nfr=1&counterid">

Note: stylename is the name of the style of the counter graphic.

The following pre-designed styles are available:

Style
st=
Border
No Border
nfr=1
red red red
gray gray gray
green green green
blue blue blue
black black black
oil oil oil
convolve convolve convolve
fun fun fun
fun2 fun2 fun2
art art art

Back to top


Custom Counter

If you want to use your own images for a counter, you should use the following syntax:
<img src="/cgi-bin/counter.gif?st=custom&private&counterid">

Note: custom is the name of the graphic (without the extension), and counterid is a unique counter identifier.

When the &private is specified, the counter script goes to the user's pwp root directory, and looks for 10 gif images. For this example, we used custom for the image name. You should have 1 gif for each number, such as:

Image Name Image
0custom.gif example of counter
1custom.gif example of counter
2custom.gif example of counter
3custom.gif example of counter
4custom.gif example of counter
5custom.gif example of counter
6custom.gif example of counter
7custom.gif example of counter
8custom.gif example of counter
9custom.gif 9custom.gif (61 bytes)

Note: The maximum size allowed for each of the digits is 60x60 pixels, and they all must be the same size.

If you aren't feeling particularly creative, try one of the graphics that we have created for you, or, choose one from the pages below.

If you would like to use one of the counters that we've created, download the file that you wish to use from the table below and unzip it.

custom.zip custom.gif (206 bytes)
wurd_arial8.zip arial8 sample
wurd_inv.zip An invisible counter

Upload the 10 gif files into your pwp root directory. The counter graphics must be in your pwp root directory in order to work.

As an example, for the WURD invisible counter, use the following syntax:
<img src="/cgi-bin/counter.gif?st=wurd_inv&private&nfr=1&counterid" height="1" width="1">

Place the code shown above on one line, with no spaces between the quotes ("). We recommend using the height and width tags only if you are using the invisible counter. Otherwise, you take a risk of distorting the counter image.

If you use the invisible counter, you'll have to use the Counter Manager to see your count. You will also have to authenticate before you access that page.

Back to top


Counter Identifier

Using a unique counter identifier will keep some browsers (depending on the settings) from loading another page's counter from the cache. We recommend that you use your e-mail id followed by an underscore and then the filename without the extension.

For example:

emailid_index
emailid_page2

If you use folders and have more than one page called index, add a number following the name of the page. For example, the counter IDs for your two index pages could look like this:

emailid_index01
emailid_index02

It's best that you not use any character other than an underscore, a letter or a number in the counter ID. Using anything else could cause unexpected results.

You could eliminate the filename and just go with numbers as shown below, but we find it easier to remember what we've already used by using the naming conventions shown above.

emailid_01
emailid_02

Back to top


Inserting your counter code with a WYSIWYG editor

WYSIWYG editors like to make the code look the way that they think it should look. However, it isn't always in the Webmaster's best interest. Most editors have allowed for this by giving you a way to enter code that is untouchable. We've outlined the method for a few of them on our WYSIWYG Editors page.

You won't be able to see the counter until the page is actually uploaded to the Web server. If you're using Netscape Gold or Composer, make sure that there are no spaces following the end of the counter code. If there are spaces after the code, you'll get a Premature close of tag error message.

Back to top


Maintaining your counters

AT&T Worldnet provides a Counter Manager to help you maintain your counters. You must be using an AT&T Worldnet connection, and will be asked to authenticate before you can access the Counter Manager. You'll find the Counter Manager at the link below:

With the Counter Manager, you can reset your counters, delete obsolete counters. keep track of counts if you're using a hidden counter, etc. Note: The Counter Manager doesn't remove counter code from your page, it just deletes the counter from the database.

We've provided instructions using the Counter Manager with a graphic showing the layout following the instructions.

Counter Manager Screen Capture

Back to top

Need Additional Help?

If you can't find the answers you need, please try:

  1. The help file for the application you are using.
  2. Our FAQs.
  3. The AT&T Worldnet Help Newsgroups.
Note: AT&T DSL Service support is available at http://dslhelp.att.net