[thelist] Slide show with html text

Peter Smulders schmolle at pobox.com
Tue Oct 14 16:50:55 CDT 2003


Hi Jono,

> I need to make a slide show - containing 3 images with html text captions -
> with an image at the top, and a caption below each image.  I would like to
> pause the slide show for 9 seconds on each image and caption.

With some amazement I have read the suggestions of other people for this 
problem (which included downloading an obscure language actually meant 
for proprietary hardware and an utterly different platform).

Unless I have completely missed the point, will the HTML below not do 
the trick? It will work in even the oldest of browsers, no dependancies 
whatshowever.

---cut here----

<html>
<head>
<meta http-equiv="Refresh" content="9; url=slide2.html">
</head>
</body>
<img src="img1.gif">
<p>Text for image 1</p>
</body>
</html>

---cut here---

Note that this is the HTML (without any sort of niceties) for 
slide1.html, refering to slide2.html as the next one. Obviously set the 
last one in the sequence to have the first one as the 'url' in the 
'meta' tag.


For four slides (or even up to a dozen), hand coding, copying and a bit 
of editing is feasible. If you need more than this, then automatically 
generating the pages is no big deal either.


If you want different speeds, you could maintain two parallel sequences, 
such as Slide1-9secs.html, Slide1-3secs.html, Slide2-9secs.html, 
Slide2-3secs.html, etc, and link from the one to the other.

If have done this to create an auto-generated slide show in pure HTML 
using a Cygwin bash script. (proving it can be done and yes, I would be 
happy to send it to you)


Hope that helps,

Schmolle



More information about the thelist mailing list