More Free Sudoku Trac Logo For Fluid

jQuery Lightbox on github

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!

Click here to lend your support to: jquery-lightbox and make a donation at www.pledgie.com !

7 Responses to “jQuery Lightbox on github”

  1. Haro Says:

    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.

  2. dr_bonzo Says:

    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();
    }

  3. thgr Says:

    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!

  4. chris Says:

    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!

  5. Donniel Says:

    Hi,

    I’m confused - is your project in any way affiliated with this: http://leandrovieira.com/projects/jquery/lightbox/?

    Cheers,
    Donniel

  6. Brian Sahagun Says:

    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.

  7. Chris Says:

    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

Leave a Reply