jquery lighbox

Associate
Joined
24 Apr 2013
Posts
4
I was wondering if anyone can help, i want to create a lighbox gallery from 1 thumb nail but have multiple images on the slideshow, please can anyone help.
 
Associate
Joined
16 Jan 2008
Posts
2,350
Add a new class (eg. .hidden) to each of the thumbnail's containers that you don't want. Then use display:none in your class.

Look at jsFiddle where I've shown you what to do.
 
Soldato
Joined
20 Jun 2010
Posts
3,251
Meh. Lightbox2 is syntactically nicer, and since the rel sits on the link you can just close empty a tags.

Code:
<a href="/images/image1.jpg" rel="lightbox[stuff]"><img src="/images/t_image1.jpg" /></a>
<a href="/images/image2.jpg" rel="lightbox[stuff]" />
<a href="/images/image3.jpg" rel="lightbox[stuff]" />
 
Back
Top Bottom