PDA

View Full Version : Resolved Lightbox image viewer (1 thumb, multiple images to open)



Skinnybobb
01-03-2012, 02:36 PM
1) Script Title: Lightbox image viewer

http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm

Can the Lightbox image viewer only display one thumbnail but when clicked it allows you to navigate multiple images in the group.


i.e. instead of having 5 thumbs displayed and they are all grouped and cycled when one thumb is clicked, you would only have 1 thumb but all 5 images can be grouped and cycled through.

FORGET IT! - I guess i simply wouldn't show the thumbnail images but still retain the a href links!!

marianekingston
08-27-2012, 10:07 PM
Hi! I'm having the same problem. How did you do it?

I want to have one thumbnail but when clicked it allows you to navigate multiple images in the group.

jscheuer1
08-27-2012, 11:14 PM
Only use one thumbnail, then follow it with empty a tags specifying the other larger images in their href attributes. Just make sure they all have the same bracketed group name in their rel attributes, ex:


<a href="image-3.jpg" rel="lightbox[plants]" title="Click on the right side of the image to move forward."><img src="thumb-3.jpg" alt="Plants: image 1 0f 4 thumb" /></a>
<a href="image-4.jpg" rel="lightbox[plants]" title="Alternately you can press the right arrow key." ></a>
<a href="image-5.jpg" rel="lightbox[plants]" title="The script preloads the next image in the set as you're viewing."></a>
<a href="image-6.jpg" rel="lightbox[plants]" title="Click the X or anywhere outside the image to close"></a>