Is it possible to lightbox many images but only show one image to activate them?
Posted
by Obay
on Stack Overflow
See other posts from Stack Overflow
or by Obay
Published on 2010-05-03T00:42:21Z
Indexed on
2010/05/03
0:48 UTC
Read the original article
Hit count: 709
Hi,
I'm using Lightbox to display photos. So If I have two categories of photos, "work" and "vacation", I would do...
<a href="images/image-1.jpg" rel="lightbox[work]">image #1</a>
<a href="images/image-2.jpg" rel="lightbox[work]">image #2</a>
<a href="images/image-3.jpg" rel="lightbox[work]">image #3</a>
<a href="images/image-4.jpg" rel="lightbox[vacation]">image #4</a>
<a href="images/image-5.jpg" rel="lightbox[vacation]">image #5</a>
<a href="images/image-6.jpg" rel="lightbox[vacation]">image #6</a>
This displays 6 images, and when I click one of them, it starts the Lightbox.
However, I'd like to be able to display only two images initially (one for 'work', one for 'vacation'), but when one of them is clicked, it behaves like the first example, e.g. display all photos in that category through Lightbox.
Is this possible? If so, how?
Any help is very much appreciated! :)
Thanks
© Stack Overflow or respective owner