Howard's Hat Trick How-To

So, you liked the hat trick, eh?

I did it by using uncgi to invoke a bourne shell script I wrote called slideshow.sh.

Then, I use this HTML statement to run the slide show:

<img src=cgi/uncgi.cgi/slideshow.sh/images/slides/hattrick width=200 height=136>
The fact that the URL includes uncgi.cgi causes it to be run, and it knows that the word which follows in the URL is the name of the script to be run (here slideshow.sh). What follows after that is the pathname from the root of the web down to a directory which contains a series of gifs all of the same size. My slides are stored in:

http://www.timefold.com/images/slides/hattrick

My gifs were 200 x 136 pixels. You can find the size of a gif on a unix machine by using the file command on the gif file itself.

slideshow.sh then sorts the images in numerical order, so the images need to have names which begin with numbers and indicate the order of display. There is no need to specify a contiguous range of numbers. You could number them 10.foo.gif, 20.foo.gif, etc. to leave room for later insertion of gifs without renaming.

Want to see the finished product?


Last Updated: 2/22/96
Timefold(tm) - info@timefold.com or http://www.timefold.com
Howard Cohen - hoco@timefold.com