There are a lot of jQuery plugins available for this
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)