jQuery Lightbox on github
Filed in: Software, javascript, jquery Add comments
I’ve moved jquery lightbox’s development from google code to github.com. I’ve not yet closed down the google code repository, but i’m going to take time this week to clean it up, and direct everything to github. I’ve had a nice boost of positive feedback in the last week or two, and have some features in mind for development. I’ll keep progress posted here.
Cheers!

December 12th, 2008 at 4:45 pm
What are the chances of adding a feature to include richer meta-data in the image viewer?
Title: xxxxxxx
Posted by: xxxxxx
External link: xxxxxx
This would be a killer feature that most other lightboxes don’t have, as far as I know. It would be easier to pull it from html attributes, but providing the content programmatically inside jquery would allow for links and such.
December 18th, 2008 at 6:04 am
Thanks for the plugin. I’ve found a bug.
A picture has title=”…”, so it is displayed in #caption in lightbox.
Then I switch to a picture that has NO title set (or empty title) - and the #caption is not cleared, but displays old title.
The fix code is
—
if(opts.imageArray[opts.activeImage][1])
{
$(’#caption’).html(opts.imageArray[opts.activeImage][1]).show();
} // original code ends here
else // added by me, caption may be hidden or sth, I’ve just cleared my contents
{
$(’#caption’).html(”").show();
}
February 16th, 2009 at 11:39 am
Thanks for porting - very nice job!
Switched from script.aculo.us to jQuery with one of my projects - so this came in handy.
I added a slideshow button if you like to get the code please send a mail …
greetings from austria!
March 5th, 2009 at 11:12 pm
I just had a quick question regarding this script
How would I go about using it on a div as opposed to a link? I have a div with an image, a title, and one paragraph, that I’d like to use to load a gallery of images.
For example:
$(”divID”).click(function() {
$(this).lightbox();
}
I tried using the attr method to grab the href and passed it to the lightbox function, hoping it would suffice, but it did not. Any suggestions?
Thanks! Great Script!
March 28th, 2009 at 12:43 pm
Hi,
I’m confused - is your project in any way affiliated with this: http://leandrovieira.com/projects/jquery/lightbox/?
Cheers,
Donniel
April 16th, 2009 at 7:53 pm
Good day, Mr. Krewenki,
Thanks for creating Lightbox for jQuery.
Is there a way to remove the loading icon when the image is already loaded? This will make the transition appear faster when going back and forth through the gallery.
Thank you.
September 15th, 2009 at 6:18 am
Hi - nice plugin.
I made a little change to the doChangeImage() method to stop it from hanging up on a busted image link.
If you add an onerror handler you can at least show a blank image. If you wanted (I didn’t need it) you could swap it out for a default image. At a bare minimum it allows you to skip over the broken image and still see the rest of the sequence.
imgPreloader.onerror = function(){
imgPreloader.width = 400;
imgPreloader.height = 300;
imgPreloader.onload();
}
nice work!
CC