html - Popup Image Gallery using Jquery -
i working on website contains gallery. have made code in html , css customize shape of gallery within page. make popup every image within gallery once clicked! knowledge in jquery basic, kind of appreciated.
<div class="showcase"> <ul> <li class="current"><a href="gallery/pic1.jpg"><img src="thumb/pic1.jpg" alt="" height="240" width="190"/></a></li> <li><a href="gallery/pic2.jpg"><img src="thumb/pic2.jpg" alt="" height="240" width="190"/></a></li> <li><a href="gallery/pic3.jpg"><img src="thumb/pic3.jpg" alt="" height="240" width="190"/></a></li> <li><a href="gallery/pic4.jpg"><img src="thumb/pic4.jpg" alt="" height="240" width="190"/></a></li> <li><a href="gallery/pic5.jpg"><img src="thumb/pic5.jpg" alt="" height="240" width="190"/></a></li> </ul> </div>
my style sheet :
.showcase { margin: 0 0 25px 0; } .showcase ul { list-style: none; } .showcase ul li { position: relative; display: inline-block; background-color: grey; width: 200px; height: 230px; margin: 0 0 25px 25px; box-shadow: inset 0px 0px 2px 1px #ffffff, 0px 2px 4px 2px rgba(98, 67, 36, 0.5); } .showcase ul li.current { margin-left: 0;`` } .showcase ul li { position: absolute; top: 20px; left: 20px; }
this jquery has helped me in past
instructions pretty simple.you might have add unique identifier each item though. sample jquery set call 1 . need modify dynamically update per image.
Comments
Post a Comment