Lightbox JS, and the newer Lightbox 2, are JavaScript applications used to display large images using modal windows. The script has gained widespread popularity due to its simple yet elegant style and easy implementation. Lightbox uses Prototype and script.aculo.us for its animations and positioning.
On a Lightbox-enabled page, a user can click an image to have it magnified in a Lightbox window, which resizes itself according to the size of the image using a gliding animation. Lightbox determines which images will be shown in the modal window through the XHTML "rel" attribute. Lightbox also provides a way to attach captions to images and run a slideshow which can be navigated through with the keyboard arrow keys. [more]