jQuery: How can I show an image popup onclick of the thumbnail?
Solution 1:
There are a lot of jQuery plugins available for this
Thickbox
LightBox
FancyBox
FaceBox
NyroModal
PiroBox
Thickbox Examples
For a single image
- Create a link element ()
- Give the link a class attribute with a value of thickbox (class="thickbox")
- Provide a path in the href attribute to an image file (.jpg .jpeg .png .gif .bmp)
Solution 2:
I like prettyPhoto
prettyPhoto is a jQuery lightbox clone. Not only does it support images, it also support for videos, flash, YouTube, iframes and ajax. It’s a full blown media lightbox