[Javascript] need script - slideshow with captions

Andrew Gibson andyg at ihug.co.nz
Fri Feb 28 16:54:11 CST 2003


Just add an array of captions to the script and change the caption as you
change the image?

var c=new Array(5)
c(0)="This is m doing the hula"
c(1)= "This is my cousin bob"

then, on the user clicking the link

var document.myImage.src=newimage[n]  // whatever it is
var document.getElementById("caption").innetHTML=c[n]

In your HTML code

<img id=myImage src=>
<div id=caption></div>


>>>>>>>>>>>>>>>>>>>

Subject: [Javascript] need script - slideshow with captions


I am looking for a script for a slideshow with captions.  Here is the
page as it is: http://www.texasbeaders.com/retreat_pics.asp and it
does everything I need except allow captions.  I tried to contact the
person who wrote the script but the info given is invalid.

I spent a couple of hours this evening searching for a script, but
what I found I couldn't get to work.  I have no problem modifying the
script I'm using now, or using a new one.







More information about the Javascript mailing list