jQuery Lightbox

Cost: Free, links back
Found Via: http://leandrovieira.com/projects/jquery/lightbox/

I couldn’t tell you how many lightboxes I’ve used over the last few years. This specific lightbox was designed as a plugin for the jQuery library. It works perfectly, and more importantly, requires no additional markup to your document. You only need to call it from your Javascript file. You’ll have zero problems!

Lightbox
Lightbox

Add Comment

Discussion 36 Comments

  1. It’s not bad :) I have always preferred MultiBox, by phat phusion: http://www.phatfusion.net/

  2. You should learn to develop a ligtbox from scratch, it would be very interesting.

  3. dmoena says:

    …and I prefer shadowbox. it’s jQuery comtpatible and loads not only inline elements.

    you should definitely offer a lightbox from scratch tutorial. that would be awesome.

  4. Mark Hutton says:

    I evaluated quite a lot of lightbox clones for jQuery and I found prettyPhoto to be the best ( http://www.no-margin-for-errors.com/projects/prettyPhoto/ ).. it looks great, centres vertically properly and supports multiple galleries per page

  5. Alex Fraiser says:

    Sounds simple enough, thanks for sharing.

  6. Martin Ansty says:

    Phatfusion’s Multibox looks very interesting, and it supports lots of different elements (flash, videos, iframes etc). I only wish it was a jQuery plugin, rather than mootools

  7. Looks nice! But it isn’t possible with this lightbox to overlay div’s or html on your page, or am I wrong with that?

    @ Ben Griffiths; MultiBox looks really great, is it possible to use that with jQuery instead of Mootools?

  8. Shane says:

    Firstly, thanks for posting. I don’t want to sound ungrateful, but I feel that the ubiquity of Lightboxes has rather spoilt their appeal.

  9. JohnnyO says:

    @ Ben Griffiths .. MultiBox is good but its moo tools. If you wanted to stick with jQuery check out FancyBox .. http://fancy.klade.lv/

    -JO

  10. John says:

    I’ve found shadowbox to be the way to go on this too. No borders or other design elements, just sexy pictures.

  11. Eduardo says:

    plugins are nice, but knowing how to build from scratch rocks!

  12. thanks for the post, I myself have never actually like light boxes at all, but maybe that is just me :P

  13. Fancybox does look good too :)

    For all those who mentioned that MultiBox uses mootools – thats not so much a big issue, as you can use both mootools and jQuery on a single document at the same time. Of course that will increase load times for slow visitors as there’s two libraries to load.

    Personally, I’d love to see it ported to jQuery though :D

  14. Unreal Media says:

    Another great gallery there.

  15. Rishi Luchun says:

    ooh been looking for something like this!

  16. kareem says:

    this is wonderful tutorial i will put acopy of this lesson on
    my site here
    http://www.as7ap4you.com

  17. says:

    can i load jquery light box from Flash?

    • morgan says:

      i’m wondering this too. anyone know how to do this?

      • David Puerto says:

        Yes, you can do this a number of ways, even pass strings from Flash to the DOM in AS2 and AS3. I modified the popular PieceMaker 2 (AS3) and did just that with a little custom code and some foresight.

  18. kost says:

    Good alternative for Thickbox, thanks.

  19. mika says:

    wish it was in jquery library too but …

  20. Chris says:

    QUESTION:
    I have a client request for a light/thick/fancy box type of effect – but he wants thumbnails of the images within the box. I’m trying to advise against it – but was wondering if anyone knows of such a thing already out there?

    thanks

  21. John says:

    I’m new to this. Is there a way to keep the next and prev buttons visible at all times?

  22. This is really very good… Thanks

  23. linux FONT says:

    hello thanks for sharing ^^!
    how about “colorbox”? have tried to use it? it much better and complete.
    you can see it live at our website 0_0

    cheers

  24. Shaz3e says:

    it helps me to create my new furniture websites, Thanx Net Tutorials

  25. thank you very much. it’s a nice content. I like so much.

  26. inu says:

    source if the light box with database php please?

  27. Mauricio says:

    Thank YOUUU!!!!!! …. and thank you all posts!

  28. when i user light box with CYCLE jquery i have problem
    CYCLE dose dosent work!

  29. JC says:

    I installed this and it looks good except the next and prev buttons don’t seem to work consistently. I can’t seem to figure out what the problem is. My HTML markup is exactly the same between each image, yet it works sometimes and breaks other times. I’ll have to scrap this if I can’t get the bugs out.

    Thanks!

Add a Comment

To add a code snippet to your comment, please wrap your code like so: <pre name="code" class="html">YOUR CODE</pre>. You can replace the class name with "js," "css," "sql," or "php." If there are any "<" or ">" within your code, please search and replace them with: &lt; and &gt; respectively.