In my last article I shared a navigation menu using jQuery hoverIntent. After this first article about Javascript, I decided to do a follow up article about the same topic. In this article I’ll introduce you to Lightbox and 15 of its other family members. Lightbox, and the newer Lightbox 2, is a JavaScript application used to display large images using modal dialogs. It’s a great way to use child windows for displaying different information on your website, especially for displaying your images in detail. Some of my favorites are also included. Enough talking, lets get it rolling.

Lightview was built to change the way you overlay content on a website.
- Clean: Designed to compliment your content.
- Fast: Smart image preloading.
- Easy: Customizable without having to know CSS.
- Rounded: Adjustable rounded corners, no PNG images required.
- Smart: Content resizes to always fit on your screen.
- Slideshow: One button slideshow.
- Works on all modern browsers.
2 Pirobox

- The script weighs only 15KB, (9KB Minified)
- There is a choice between three different styles (shadow, white or black)
- Slideshow option
- Multiple image set option
- Keyboard navigation: Right arrow [next], Left arrow [prev], ESC [close]
- Preview and Next buttons outside or inside the imageBox
- Automatic repositioning of the image in the browser window
- Browser compatibility = FireFox 2+, Opera9.5+, Chrome, Safari (Mac/Windows), IE 6+
- + much more…

4 Facebox

Facebox is a jQuery-based, Facebook-style lightbox which can display images, divs, or entire remote pages.

Fancy zoom box loosely based on Cabel Sasser’s FancyZoom. Built in prototype and jquery. Works unobtrusively with content already on the page, including images, headings, text and flash (pretty much any html).


PrettyPhoto is a jQuery based lightbox clone. Not only does it support images, it also add support for videos, flash, YouTube, iFrames. It’s a full blown media lightbox. The setup is easy and quick, plus the script is compatible in every major browser.
It comes with useful APIs so prettyPhoto can be launched from nearly anywhere including Flash.

ThickBox is a webpage UI dialog widget written in JavaScript on top of the jQuery library. Its function is to show a single image, multiple images, inline content, iframed content, or content served through AJAX in a hybrid modal.

FancyBox is a tool for displaying images, html content and multi-media in a Mac-style “lightbox” that floats overtop of web page.
Features
- Can display images, HTML elements, SWF movies, Iframes and also Ajax requests
- Adds a nice drop shadow under the zoomed item
- Groups related items and adds navigation. If the mouse wheel plugin is included in the page then FancyBox will respond to mouse wheel events as well
- Customizable through settings and CSS
- Support fancy transitions by using easing plugin
10 Shadowbox

Feature
- Standards: Shadowbox uses HTML markup that validates. It doesn’t depend on phony HTML attributes in your anchor tags to make it work. The web has enough problems with standards compliance as it is, and Shadowbox does its best to not perpetuate them.
- Free from Frameworks: Although Shadowbox has the unique ability to adapt to whatever JavaScript framework you choose, it’s just as easy to run it as a standalone application, giving the developer a great deal of flexibility.
- Customizable: Shadowbox supports a host of options that make it highly configurable. If you don’t like the way something works, chances are very good that you can change it without digging through the code.
- Neat and Compact: The Shadowbox code is neat, modular, and compact. You can even create a custom build of the code that includes just the features you need so it’s as light weight as possible.
11 ColorBox

A light-weight, customizable lightbox plugin for jQuery 1.3 and 1.4.
Features
- Supports photos, photo groups, slideshow, ajax, inline, and iframed content.
- Lightweight: less than 9KB of JavaScript.
- Appearance is controlled through CSS so users can restyle the box.
- Behavior settings can be over-written without altering the ColorBox javascript file.
- Can be extended with callbacks & event-hooks without altering the source files.
- Completely unobtrusive, options are set in the JS and require no changes to existing HTML.
- Preloads background images and can preload upcoming images in a photo group.
- Written in jQuery plugin format and can be chained with other jQuery commands.
- Generates W3C valid XHTML and adds no JS global variables & passes JSLint.
- Released under the MIT License.
- Tested In: Firefox 2 & 3, Safari 3 & 4, Opera 9, Chrome, Internet Explorer 6, 7, 8.

13 nyroModal

Features
- Ajax Call
- Ajax Call with targeting content
- Ajax call can change the modal size
- Single Image
- Images Gallery with arrow navigating
- Gallery with any kind of content
- Form
- Form in iframe
- Form with targeting content
- Form with file upload
- Form with file upload with targeting content
- Dom Element
- Manual Call
- Iframe
- Error handling
- Modal will never goes outside the view port
- Esc key to close the window
- Customizable animation
- Customizable look
- Modal title
- Ability to block only one element
- W3C valid HTML (Transitionnal)

15 Slimbox

Features
From a functional point of view, Slimbox has the following added features compared to the original Lightbox:
- Slimbox is ready to launch as soon as the document is ready. This means that you don’t have to wait for all images of the page to be loaded before clicking on a link that will launch the Lightbox effect.
- Slimbox also centers images vertically on startup, not just horizontally. Vertical scrolling is still possible.
- It works perfectly on horizontal-scrolling websites.
- It temporary hides flash animations and other embedded videos while it is open to avoid display bugs in some browsers. It also hides select boxes in Internet Explorer 6.
- Using a special option (“loop”), it allows you to navigate between the first and last images.
- Slimbox is more responsive; it allows you to close it immediately at any time using the keyboard or mouse and to instantly navigate to any image before the current image has loaded or the animations are complete.
- The script is more robust; for example you can try to start and stop Slimbox or navigate between images very quickly to interrupt the animations and resume them and you won’t notice any bug like in the original Lightbox where sometimes the animation stops or the elements are wrongly sized or positioned.
- Slimbox can be launched from the traditional image links inside the page like the original Lightbox, but also directly from Javascript using its complete API.
From a design point of view, Slimbox is very different from Lightbox:
- The code is optimized to an insane level and has been written from scratch with efficiency in mind for the MooTools framework instead of the huge Prototype/Scriptaculous. The script itself is as tiny as 4kb (minified, uncompressed).
- Slimbox can be entirely customized thanks to many options. You can change the duration of any effect, the counter text translation or even the navigtation keys.
- Slimbox has a much more powerful API, allowing you to apply the Lightbox effect easily on any clickable element or from any script. For example, it can be easily integrated with links pointing to Flickr or Picasa Web Albums pages or with any javascript image gallery.
- The Slimbox CSS are simpler and 100% valid (no more CSS hacks). Also, every visual aspect of Slimbox (including images) is specified in the CSS instead of the Javascript so it is easier to style. You may even change any border size in the CSS and Slimbox will still work fine, which means that nothing is “hard-coded” in the source code.
My personal favorites: Fancy Zoom, FancyBox, ShadowBox, ColorBox and Slimbox. I hope you can use this round up to your benefit and feel free to share your favorites. If you know about more modal boxes and they’re not listed please add them with a comment below and I’ll include them later.





Loading...



Hey dude

]
What say??
Thanks for informing about this
[My Bro Sunny buzzed me to check out this
I have come across these via Wordpress plugins and i think if anything is left out then you can also make out one plugin out of it
Off topic -> Make your twitter form background black the white text is not visible in light blue color


Sunil Jain´s last blog ..100+ Best Free Premium Wordpress Themes of Jan 2010
Hi Sunil,
First of all thank you for commenting. I appreciate your participation at my blog.
I know that there are a lot of plugins for modal boxes for Wordpress. Just by searching ‘lightbox’ you will get a lot of them listed. But the purpose of this article was not based on the plugins for the Wordpress platform but for general web developing, especially building from scratch
. If you have use them as plugins feel free to share them with your comment and I will update my list with an additional set for the Wordpress platform.
On the Twitter form topic, I’m aware of it it’s a bug I have with the code in manual mode. The twitter field is already incorporated above the text area. The one below the form shouldn’t be there but it seems to toggle itself back on automatically hehe. But Thanks for pointing it out I appreciate it.
Cheers
While I’ve been using lightbox for several years, I’ve started making Fancy Box my default photo gallery plugin. I absolutely love it’s minimalism. Thanks for the roundup. I’ll have to check into some of these.
Chris Thurman´s last blog ..Green Thumb: A Free Social Media Icon Set
Hey Chris first of all thanks for dropping a comment
I really like the Fancy Box also just for that reason. It’s very lightweight. Some of them were also new for me at the time I mad the roundup. So for me some of them are also new and maybe one day I’ll try them out.