A slideshow script with thumbnail
images. By clicking on the thumbnails, a popup window displays the full
size image. The script includes a rollover for the next and previous
buttons.
EXAMPLE
Select the images with the next and
previous buttons and click on the thumbnail image to display a full size version
in a sized popup window.
1) Insert this script in the <HEAD> section of the page.
2) Insert this HTML code in
the <BODY> section where you want the slideshow to appear in the page.
3) Insert the onLoad event handler inside the
<BODY> tag as follows:
<body
onLoad="preloadImages('images/previous_on.gif','images/next_on.gif')",
followed by other tags such as bgcolor, etc..
4) Modify
these variables to define the location and the size of the slideshow and the
thumbnail images, the number of images used and the size of the popup window in this section of the script:
if(document.images) {
currentslide=1;
maxslides=4; // the number of
images used
slide = new Array(maxslides+1);
thumb = new Array(maxslides+1);
for(var n=1;n<=maxslides;n++) {
slide[n]=new Image(302,346); //
the size of the slideshow images
slide[n].src='images/slide_'+n+'.gif';
}
for(var n=1;n<=maxslides;n++) {
thumb[n]=new Image(80,120); //
the size of the thumbnail images
thumb[n].src='images/thumb_'+n+'.gif';
function showFullSize(){
openPictureWindow('images/slide_'+currentslide+'.gif', 302, 486, 'Full Size Image'); //
the size of the popup window