Thursday 15 May 2014

jquery - how to open multiple lightbox -


I have a gallery on one page when you click on one of the thumbnails, the gallery is shown for this album Will give. Inside the album, when you click on the image, a large and clear version clicked on the image will appear in a lightbox. I'm just wondering how can I open two lightbox instead of one, it may be a stack on top of the other or bottom. I need to open two, there is a code below which I am using, If you click on it, just open a lightbox.

  & lt; A href = "images / headboards / lhb1.jpg" class = "triggerlightbox" & gt; ; & Lt; Img src = "pictures / headboards / hb1.jpg" alt = "headboard" width = "620" height = "350" /> gt; & Lt; / A & gt;    

Create two or more link images with the same value of the attribute rel < / Code> like this:

  & lt; A rel = "group" href = "picture / headboards / lhb1.jpg" class = "triggerlight box" & gt; & Lt; Img src = "picture / headboards / hb1.jpg" alt = "headboard" width = "620" height = "350" /> gt; & Lt; / A & gt; & Lt; A rel = "group" href = "images / headboards / lhb2.jpg" class = "triggerLightbox" & gt; & Lt; IMG src = "picture / headboards / hb2.jpg" alt = "headboard" width = "620" height = "350" /> & Lt; / A & gt;   

Good luck!

No comments:

Post a Comment