Original: http://huddletogether.com/projects/lightbox/
My Modifications: http://qzx.com/lightbox-mod
-------------------------------------------------------------------------------
CHANGES (15apr2012)
- $id function was always redefined, now it is only set if not already defined
CHANGES (29mar2012)
- visible height is now correctly determined when a horizontal scrollbar is present
CHANGES (28feb2012)
- scroll lock now works on IE
CHANGES (26feb2012)
- added missing semicolons to allow code to be packed
- clear lightbox_close_callback after closing lightbox
- fixed problem where a fixed width/height lightbox that is same size or
smaller than browser window would endlessly resize (flash)
- vertical page scroll is locked while lightbox is open to prevent it from
scrolling out of view when reaching the top or bottom of a scrollable
iframe
- only show arrow key message if multiple images
- added lightbox_image_path variable
- only load arrow images when needed so sites that only have iframe content
or single images aren't serving them
- cleaned up the code a bit
- removed close button image preloading and added size variables
- fixed issue that caused arrows to appear on iframe content after an image
had been viewed
- added minified version to reduce download size
- added click-to-close translatable message, display on overlay hover
- initLightbox() now uses a single options object to set parameters
CHANGES (20jan2012)
- iframe and image source is no longer set when fitting lightbox to window,
dynamic content won't be fetched from server multiple times
CHANGES (22dec2011)
- pointer cursor on overlay when click-to-close is enabled
- iframe and image source is no longer set when resizing window, this
prevents iframe content from being reset
CHANGES
- changed close.gif to transparent background and moved to corner
- added previous/next image support and arrow keys
- added blank.gif to get arrows to work in IE
- resize support
- fixed centering issue
- fixed horizontal centering when vertical scrollbar is present
- properly centers when CSS padding and borders are changed or when caption
height increases
- option to disable closing when image or overlay is clicked
- 'c' key to close
- scaling of large images and ENTER key to toggle scaling
- load HTML content in an iframe, instead of an image
- reformatted the code and cleaned up the namespace
- image groups "rel=lightbox" or "rel=lightbox[groupName]"
-------------------------------------------------------------------------------
COMPATABILITY
- tested on the following browsers
- Linux
- Chromium 13 (webkit - Chrome and Safari should work as well)
- Firefox 4-5
- Opera 11 (see TODO section below)
- Windows
- Internet Explorer 7-9
-------------------------------------------------------------------------------
USAGE
- the body tag should have 0px margin and 0px padding for proper lightbox
horizontal centering
- place all page content inside a