Ryan J Lowe’s has released LITBox 2.0. LITBox is basically a few modifications of Thickbox made into a Prototype class based off of the Scriptaculous.
Here is what Ryan has to say about LITBox — “So with all of the light/thick/whatever-box methods out there today, why would I build my own… because I wasn’t all that thrilled with the other ones out there. Don’t get me wrong, LITBox is not perfect, but for what I am developing at SpinWeb, it is the best fit. 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”.
LITBox has a pretty good list of features that I built into it (thanks mainly to script.aculo.us) that allow you to manipulate 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.
Example: [js] new LITBox(’HELLO WORLD!’, {type:’alert’, overlay:false, height:60, width:300, resizable:false, opacity:.6});[/js]
Option Parameters
- width: pixel width
- height: pixel height
- type: ‘window’,’alert’,’confirm’
- func: function to call when confirming yes
- draggable: ability to drag around screen
- resizable: ability to resize
- overlay: show overlay mask
- opacity: final opacity [0,1]
If you like, then enjoy, modify, alter, whatever. Here is the source.
LITBox

TrackBack URI Leave a comment »