TinyBox2 javascript modal windows box script brings a ton of new features and still clocks in lightweight (5kb)
The script now supports iframes and images natively. You can POST with Ajax. Clicking ESC will close the window. Callback functions can be passed for load and close events. You can set CSS IDs to override the default styling. CSS position can be toggled between fixed and absolute. The mask opacity can be sent. You have full control over window location. And of course there is now a close button out of the box you can toggle.
Modal windows are very flexible with the options like toggle animation, auto-hide, opacity level, custom positions and more.
And, they can be closed by simply clicking on the close button, anywhere outside the modal box or ESC.
There are callback functions for the open + close events and the windows can be set to load in a specific size or the width/height (auto) of the content to be displayed.
Requirements: No Requirements
Compatibility: Tested in IE7+, FF, Chrome, Opera, and Safari
Website: http://www.scriptiny.com/2011/03/javascript-modal-windows/
Demo: http://sandbox.scriptiny.com/tinybox2/
Download: http://forum.leigeber.com/index.php?app=downloads&module=display§ion=download&do=confirm_download&id=14