More information is required ...
Provide a list of where the thumbnail and larger images are located (URLs)
Associate the text captions to be linked with each of the larger images.
I don't mind helping, but I do not wish to put more work into the project than you do.
Would be nice if you provided the simple HTML layout you want displayed.
Something else to consider ...
This version does not use the JQuery library, so it is smaller and easier to modify, IMO.
You can change the formatting (positions, size, etc.), 'baseURL' and 'imgList' array to reference your images.
Multiple galleries are easy to add, but again you will need to show your intended layout.
Code:
<html>
<head>
<title>Gallery</title>
<script type="text/javascript">
var baseURL = 'http://www.nova.edu/hpd/otm/pics/4fun/';
var imgList = [
['11.jpg','Exhausted'],
['12.jpg','Confused'],
['13.jpg','Ecstatic'],
['14.jpg','Guilty'],
['15.jpg','Suspicious'],
['21.jpg','Angry'],
['22.jpg','Hysterical'],
['23.jpg','Frustrated'],
['24.jpg','Sad'],
['25.jpg','Confident'],
['31.jpg','Embarrased'],
['32.jpg','Happy'],
['33.jpg','Mischievous'],
['34.jpg','Disgusted'],
['35.jpg','Frightened'] // NOTE: no comma after last entry
];
function SetImage(IDS,imgPtr) {
var ids = '';
var ImageList = new Array();
if (IDS.indexOf('FC') == 0) { ImageList = imgList; ids = 'BigImage'; }
document.getElementById(ids).src=baseURL+ImageList[imgPtr][0];
document.getElementById(ids).alt=baseURL+ImageList[imgPtr][1];
document.getElementById(ids+'Caption').innerHTML = ImageList[imgPtr][1];
}
function InitImage() {
var str = '';
for (var i=0; i<imgList.length; i++) {
str += '<img id="FC'+i+'" src="'+baseURL+imgList[i][0]+'" alt="'+imgList[i][1]+'"'
+ 'title="'+imgList[i][1]+'" height="75" width="75" onMouseOver="SetImage(this.id,'+i+')">';
}
return str;
}
window.onload = function() {
document.getElementById('SmallImages').innerHTML = InitImage();
}
</script>
</head>
<body>
<table border="0">
<tr>
<td style="width:100"> </td>
<td>
<div style="height:95; width:300;overflow:auto;"><nobr>
<div id="SmallImages"></div>
</nobr></div>
</td>
</tr>
<tr>
<td> </td>
<td>
<img id="BigImage" height="425" width="600"
src='http://www.nova.edu/hpd/otm/pics/4fun/11.jpg'
alt='http://www.nova.edu/hpd/otm/pics/4fun/11.jpg'>
<br><span id="BigImageCaption">Image Caption</span>
<br>
</td>
</tr></table>
</body>
</html>
Note: There are many more examples of image galleries with a 'search' of this particular forum as well as some others on the web.