- General information
- Data readiness
- Grid
- Infrastructure
- Offline Software
- Production
Available CGIs
Submitted by jeromel on Sat, 2007-10-20 20:02
Under:
<IMG SRC="/cgi-bin/counter.cgi?counter=test&digit=1">
<IMG SRC="/cgi-bin/counter.cgi?counter=test&digit=0&w">
The result would be:
This did set a three digits counter named test. Use a name appropriate for your page and be aware that changing names would make the counter reset to 0. Also, be careful to use only one &w as the counter needs to be incremented only once on the lowest digit.
Counters
In cgi-bin, We have a modified version of Frederic TYNDIUK's version of the Basic Graphical Counter. To set it up, just add lines similar to the below in your html page
<IMG SRC="/cgi-bin/counter.cgi?counter=test&digit=2"><IMG SRC="/cgi-bin/counter.cgi?counter=test&digit=1">
<IMG SRC="/cgi-bin/counter.cgi?counter=test&digit=0&w">
The result would be:
This did set a three digits counter named test. Use a name appropriate for your page and be aware that changing names would make the counter reset to 0. Also, be careful to use only one &w as the counter needs to be incremented only once on the lowest digit.
counter.cgi accepts the following parameters
|
Parameter name |
Value |
Effect |
|
counter |
Any (string) |
Used to separate counters in classes. In the example above, all pages referencing counter=test if accessed, would share the same 'test' counter. |
|
digit |
(int) |
The digit to display. |
|
w |
|
This parameter do not need a value. Its effect is to increment the counter and it needs to appear only once per page. |
