Home » News » LITBox is v.2.0: New Lightbox ...

News by JavaScriptSearch


LITBox is v.2.0: New Lightbox Clone Released

 

JavaScriptSearch
Tuesday, June 20, 2006; 05:46 AM

There exist a number of solutions for developers who want to implement a quick way to display pictures or pages on top of the current page.  The most popular seem to be Lightbox and Thickbox, using the Prototype and jQuery JavaScript frameworks, respectively.

Web developer Ryan Lowe has added yet another JavaScript library that serves the same purpose.  He describes LITBox as "basically a few modifications of Thickbox made into a Prototype class based off of the Scriptaculous...Probably the biggest advantage of the LITBox is that it is a lightbox written into a class. This gives it the ability to open multiple instances of the LITBox and be able to control each one with unique settings and controls."  The original release announcement is at http://www.ryanjlowe.com/?p=9 .

The implementation is really straightforward, as in similar libraries: specify the path to the files in your document and the rest is simply matter of including a line or two of JavaScript code. 

LITBox has a good list of features (thanks mainly to script.aculo.us) that allow for the manipulation of size, opacity, and type as well as the ability to choose whether the window can be draggable or resizable. It also works cross-platform. You can specify a relative link to use an xmlhttp request to pull in content from another page on your site, or just use it to display or confirm a message to the user.

 

LITBox in action.

 

Advertisement

Partners

Related Resources

Other Resources

arrow