[EMAIL PROTECTED] wrote:
>
> Does anyone know how I could use REBOL to return a gif hit counter. I did
> see and example of how to return a text number but I really need it to be in
> an <img> tag. I've faked it using a script let but that only works with IE
> browsers. Any help is apprecitated.
>
I don't have time to throw it together at the moment, but you can do
this WITHOUT image/bit twiddling using the following scheme:
0) Create (with your favorite graphic editor) a set of digit images
(e.g. d0.gif thru d9.gif, or jpg or whatever) and store them on
your site.
Then in the cgi/exec script:
1) Do all The Usual Stuff to increment and save the hit counter;
2) Convert the (numeric) hit counter value to decimal (ASCII string
or array of decimal digits);
3) Output HTML which pulls in the appropriate images, one per digit,
in a single row without whitespace between the tags.
For example, using the above image names, if your hit counter is
two hundred seventy four, you'd get the decimal sequence
[2 7 4]
in step two and in step three output the code
<img src="d2.gif"><img src="d7.gif"><img src="d4.gif">
(obviously you can also add height=, width=, and alt= attributes if
you want to get more strict).
With the above sequence inserted into your page, it will look as if
you actually generated the counter graphic the hard way.
-jn-