PDA

View Full Version : Enhancements to lightbox v2.03a



jroman
05-11-2009, 05:03 PM
1) CODE TITLE: lightbox v2.03b

2) AUTHOR NAME/NOTES: Jack Romanowicz

3) DESCRIPTION:
In lightbox.js:
a. Added lightboxAbsoluteTop to allow absolute positioning of the lightbox. If lightboxAbsoluteTop is undefined, the top position defaults to 10% of the viewport height (previous behavior).
b. Added lightboxCaptionOnTop to allow choosing whether the caption/closebutton is above or below the image. If lightboxCaptionOntop is undefined the default is caption/closebutton below the image (previous behavior).
c. Added lightboxPositionFixed so the box can stay in place when the window is scrolled. If lightboxPositionFixed is undefined, the box will scroll with the window (previous behavior).

In lightbox.css:
Added classes so that the padding of the image and caption divs can be adjusted depending on which is atop the other.

In index.html:
Added version comments modeled on the v2.03a comments

4) URL TO CODE:

or, ATTACHED BELOW (see #3 in guidelines below):