> 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.
> Jim
Howdy Jim:
Check out Allen Kamp's script that shows how a cgi-bin program
can return an image called from an IMG tag:
http://rebol.org/web/spacer.r
or colorized html version:
http://rebol.org/web/spacer.html
Now, that method can only return a single image each time, so
for a counter you have to do some image compositing. Can this be
done? Sure it can, by directly modifying an image file. I made some
code to suck in .bmp files available at:
rebol.org/utility/bitmap.r
Never have had the time to get to adding some function to
composite, but it shouldn't be too tough.. you got a bunch of same
sized image files of numbers, you choose a color for an alpha channel,
you run through a background image sticking painting on the right
numbers (skipping the alpha of course).
Of course, some ambitious person might want to build gif or
jpeg handling routines. Weren't you going to do jpeg Bo?
-jeff