PDA

View Full Version : lightbox image viewer gallery with single image



timondeks
10-12-2010, 11:47 AM
1) Script Title:
Lightbox Image Viewer 2.0

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm

3) Describe problem:
I'm just trying to find out if its possible to use the above grouped script with a single image displayed e.g I'd have a single image saying 'student work' and when clicked it would open the image from which you can then few further examples? (without having those examples displayed beside the original image on the page)

ddadmin
10-13-2010, 01:15 AM
You might try simply hiding the other images within the group on the page so they aren't visible to the viewer:


<a href="images/image-1.jpg" rel="lightbox[roadtrip]"><img src="1.gif" /></a>
<a href="images/image-2.jpg" rel="lightbox[roadtrip]" style="display:none"><img src="2.gif" /></a>
<a href="images/image-3.jpg" rel="lightbox[roadtrip]" style="display:none"><img src="3.gif" /></a>

The script should still see the hidden images as part of the group and cycle through them once you click on the remaining image.

timondeks
10-13-2010, 10:22 AM
nice one! never even thought of doin that, ill give it a try. cheers