PDA

View Full Version : Need Help on Lightbox image viewer



dobbin
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?

Nile
03-30-2008, 12:55 PM
Here:


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

Replace:

images/image-3.jpg
With your image URL.
Then replace image #3 with your link.

jscheuer1
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.