Hey Pierrot,
Sounds like you need to insert some line breaks (for the easiest way to do it).
Well you can do it either of two ways...
The quick & dirty way to do it would be to declare your captions like this:
Code:
captions[1] = "<br>explanation goes here<br>author goes here";
So, just put the line breaks right into your captions.
The better way to do it would be to declare a separate array for your author, and keep the formatting out of the variables. That way, if you need to change the formatting, you only have to change it in one place. You would do that like this:
Code:
var captions = new Array(); // (you can just keep this for your 'explanation')
captions[1] = "caption for image 1 goes here";
captions[2] = "caption for image 2 goes here";
captions[3] = "caption for image 3 goes here";
var authors = new Array()
authors[1] = "author for image 1 goes here";
authors[2] = "author for image 2 goes here";
authors[3] = "author for image 3 goes here";
Then change your write statement to:
Code:
document.write('<img src="'+myimages[ry]+'" border=0><br>' + captions[ry] + '<br>' + authors[ry])
Hope that helped...
Heather