Results 1 to 1 of 1

Thread: This Might Help: Lightbox 2.0

  1. #1
    Join Date
    Apr 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default This Might Help: Lightbox 2.0

    1) Script Title: Light box 2.0

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

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

    Code:
    <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.
    Last edited by trfinney; 05-01-2007 at 08:41 PM. Reason: Typo's

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •