View Full Version : Need Help on Lightbox image viewer

03-30-2008, 11:44 AM
1) Script Title:
Lightbox image viewer

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

3) Describe problem: How do you add thumbnails in to the script please help.
This is the script to add more photos into the album.

<a href="images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
<a href="images/image-2.jpg" rel="lightbox[roadtrip]">image #2</a>
<a href="images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a>
Where in that script do you add the image url to add the thumbnail?

03-30-2008, 12:55 PM

<a href="images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a>


With your image URL.
Then replace image #3 with your link.

03-30-2008, 04:21 PM
Actually, I think you mean how to add a thumbnail image as a trigger:

<a href="images/image-1.jpg" rel="lightbox[roadtrip]"><img
src="images/image-1-tbn.jpg" border=0></a>

That part is just ordinary HTML, you can put any linkable element in there, or just use text (as you originally had). The thumbnail image file (images/image-1-tbn.jpg in my example) must exist.