Simple Lightboxing | The Programmer’s Lightbox Tool | Lightbox_me

Posted on June 4, 2010, under jQuery,  Bookmark it

Lightbox_me aims to be a simple solution to lightbox a DOM element without having all the fanciness of all the lightbox-related plug-ins out there. It’s an essential tool for the jQuery developer’s toolbox. Feed it a DOM element wrapped in a jQuery object and it will lightbox it for you, no muss no fuss.

Features include:

  • Handles overlay resize when the window is resized
  • Handles overlay size in cases where the document is smaller than the window
  • Handles position: fixed in all browsers
  • Position: fixed automatically swaps to position: absolute when the window size is smaller than the modal, so the user can scroll to see the contents
  • Tiny footprint (just over 1000 bytes gzipped & compressed)
  • Small DOM overhead (adds 1 DOM element for the overlay)
  • Dynamic iFrame shim is created and destroyed for the IE 6 select box peek issue (tested and working on HTTPS pages)

Do you wish to receive the latest updates as soon as they are posted? Get our RSS Feed or Subscribe to the Newsletter!

Get our RSS Feed!

4 Replies to "Simple Lightboxing | The Programmer’s Lightbox Tool | Lightbox_me"

  1. Why is this the last post in over a month?!

    1. My apologies, but I just haven’t had the time to make more posts in the past month. I will do what I can to write at least weekly on this blog. I am quite busy during this summer.

  2. Nice lightbox idea, makes a difference from having the boring login box embedded on the page.

  3. Hi, does anybody knows how to keep lightbox_me open in case of login error?

    I have a function with PHP and JS that sends the message to the login box but with the lightbox_me it closes and the user can’t see the error.

    Anybody knows how to create a direct function not based onclicks so I can call it directly?

    Thank you.

Leave a Reply


* = required fields

  (will not be published)


XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Note: If you want to post CODE Snippets, please make them postable first!
(e.g. <br /> should be converted to &lt;br /&gt;)