This script implements a Javascript image gallery and slideshow - all in one file. Unlike version 1, this script (version 2) does not reload the page, just the images - and it has an auto-slide feature. It now supports captions.
This is a self-contained demo - it does not use a Javascript library. Eventually I'll make an object out of this and include it in the X library.
All images are Copyright (C) GoneCoastal, and used with their kind permission.
xImgGallery is distributed under the terms of the GNU LGPL.
<div id='gallery'> <div> <div class='gcon'><img id='g1'><div class='gcap' id='gc1'> </div></div> <div class='gcon'><img id='g2'><div class='gcap' id='gc2'> </div></div> <div class='gcon'><img id='g3'><div class='gcap' id='gc3'> </div></div> <div class='clearAll'> </div> </div> <div> <div class='gcon'><img id='g4'><div class='gcap' id='gc4'> </div></div> <div class='gcon'><img id='g5'><div class='gcap' id='gc5'> </div></div> <div class='gcon'><img id='g6'><div class='gcap' id='gc6'> </div></div> <div class='clearAll'> </div> </div> </div> <div id='slideshow'> <div class='scon'><img id='s1'><div class='scap' id='sc1'> </div></div> </div> <div id='navigation'> <span id='prev'>« Previous</span> <span id='next'>Next »</span> <p><span id='back'>Back to the Gallery</span></p> <p><span id='auto' title='Toggle Auto-Slide'>Auto-Slide</span> <span id='time'> </span></p> </div>
CliffHanger9's original demo of my first version.
Vic's Batch Slide Show.
Google this topic.
Suggest another link to put here.
v2.5, 29Apr05: Added support for captions.
v2.4, 25Apr05: A few little updates. I'll try to add support for captions soon.
v2.3, 1Apr05: More improvements. A list of features is in the works.
v2.2, 1Apr05: A few more improvements. (1) Doesn't display img elements when n > imgsMax. (2) Next and Prev now wrap around and are always visible.
v2.1, 1Apr05: Michael Finch made a good suggestion and I've implemented it. The image files can now be named only with a sequential number (plus the extension) and you can specify different directories for gallery imgs and slideshow imgs. There is still alot I need to do to this but it is really turning out nice thanks to your feedback :-)
More image-related demos: xImgAsyncWait and Image Viewport.
Forum support is available at the X Library Support Forums.