- IE9 Compatible: LB2.05 uses an updated coding method, and is compatible with IE9. Previous versions are not.
- jQuery and Lightbox: Lightbox needs some help in order to play nice with jQuery because many JavaScript libraries use $ as a function or variable name, just as jQuery does. Your options are to either employ jquery's "noconflict", or to use a jQuery Lightbox like Slimbox instead . Links to some resources appear at the end ;^)
- AutoResize and Captions Limitations: Lightbox does not natively automatically resize larger images to fit the visitors window. Also, Title and Caption implementation is very simplistic... although you can customize your captions anyway you see fit, its not for the faint of heart (i.e., non-coders).
MODS AVAILABLE: SO for those of us wanting to give Lighbox just a tad more punch, without having to go get some-other-lightbox, I have integrated Sebastian's AutoResize mod into LB2.05, and added my own Caption Management Enhancements Mod. You can check it out here.
<link rel="stylesheet" href="/css/lightbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="/js/prototype.js"></script>
<script type="text/javascript" src="/js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="/js/lightbox.js"></script>
What those lines do is:prev.gif and next.gif files are POINTING TO THE CORRECT location. loading.gif and close.gif files as referenced near the top of the lightbox.js file are POINTING TO the right location.rel="lightbox" attribute to the desired link (anchor) tag(s) to activate Lightbox. <a href="images/image1name.jpg" rel="lightbox" title="my caption">Name for Image #1</a>
Optional: Use the title attribute if you want to show a caption. <a href="images/image1name.jpg" rel="lightbox[group1name]">Name for image #1</a>
<a href="images/image2name.jpg" rel="lightbox[group1name]">Name for image #2</a>
<a href="images/image3name.jpg" rel="lightbox[group1name]">Name for image #3</a>