Lightbox web gallery became very popular not long ago. A lot of people were starting to using it on their websites, blogs,… But most of them don’t know there’s new version available for quite some time now.
How it works?
Simple. You link to the image you want to show with normal link. When you click on it, the website darkens and nice window slides open with chosen picture. You can navigate through this window to see all the pictures in the group. There are nice keyboard shortcuts which help you with navigation.
Why is this web gallery different? Well, it’s based around scriptaculous javascript. At first glance you’ll think it’s a flash gallery but you would be wrong. The visitors have to have javascript enabled to see gallery in action. I think this is better than flash, because almost all of my visitors have javascript enabled.
I use Lightbox 2.0 on many websites and I must say it looks very nice and there are absolutely no problems with it. Lightbox is unobtrusive and works on all modern browsers.
The implementation
The implementation is as simple as it gets. All you have to do is next:
- Copy images into your image/lightbox folder (I use “gui” folder)
- Copy css file into your css folder (I use “css” folder)
- Copy javascript files into your javascript folder (I use “scripts” folder)
- Insert javascript inclusion code to documents where you’re going to use lightbox gallery
<script type="text/javascript" src="scripts/lightbox/prototype.js"></script>
<script type="text/javascript" src="scripts/lightbox/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="scripts/lightbox/lightbox.js"></script> - All you have to do now is to make a link to the picture. You can use text or image to link.
<a href="photos/image_01.jpg" rel="lightbox" title="image title">image #1</a>
or you can use small image
<a href="photos/image_01.jpg" rel="lightbox" title="image title"><img src="photos/image_01_small" /></a> - If you want to group pictures just change the rel tag in link.
<a href="photos/image_01.jpg" rel="lightbox[group]" title="image title 01>first picture</a>
<a href="photos/image_02.jpg" rel="lightbox[group]" title="image title 02>second picture</a>
<a href="photos/image_03.jpg" rel="lightbox[group]" title="image title 03>third picture</a>
Go check out the DEMO. I like this script because it can be very easy implemented into the website and because it looks great. Here is an image to see how it looks.

If you like this post, you could subscribe to full feed RSS. You can also subscribe by Email.











Interwebhunt
I use this as well and its a great tool which is super easy to implement.