PDA

View Full Version : This Might Help: Lightbox 2.0



trfinney
05-01-2007, 08:39 PM
1) Script Title: Light box 2.0

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

3) Describe problem: If you are interested in making lightbox a photogallery, this is a simple cheat.



<a href="one.jpg" rel="lightbox[TripOne]" title="#"><img src="preview_1.gif"></a>
<a href="two.jpg" rel="lightbox[TripOne]" title="#"></a>
<a href="three.jpg" rel="lightbox[TripOne]" title="#"></a>
<a href="four.jpg" rel="lightbox[TripOne]" title="#"></a>
<a href="five.jpg" rel="lightbox[TripOne]" title="#"></a>
<a href="six.jpg" rel="lightbox[TripOne]" title="#"></a>


(this will show a gallery icon, and pull up a lightbox with 5 additional images)
I wrapped the <A> tag around the initial preview image and the had a bunch of invisible links follow with the lightbox[TripOne] reference. I am sure there are more efficient ways of doing this using arrays, but it worked for me.