Article Diary - General Knowledge Digest

Create Standalone JavaScript Modal Windows with TinyBox2

TinyBox2 is the successor of the previously published resource TinyBox which is a standalone JavaScript modal windows library. The library is lightweight (only 5kb) and supports images, iframes, HTML and Ajax requests natively.

JavaScript Modal Windows

Modal windows are very flexible with the options like toggle animation, auto-hide, opacity level, custom positions and more. They can be closed by simply clicking on the close button, anywhere outside the modal box or Esc Key.

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.

Click here for the demo.
Click here to download.

This script is tested in IE7+, FF, Chrome, Opera, and Safari and is available free of charge for both personal or commercial projects under the creative commons license.

5 (2)
Article Rating (2 Votes)
Rate this article
Attached Files
There are no attachments for this article.
There are no comments for this article. Be the first to post a comment.
Security Code Security Code
Related Articles RSS Feed
Web Usability Testing Tool - Clixpy
Viewed 1552 times since Sat, Jan 9, 2010
Stylish Cross-Browser CSS Buttons - Simply-Buttons v2
Viewed 1131 times since Thu, Nov 12, 2009
Free Under Construction Coming Soon Template
Viewed 2098 times since Sat, Mar 12, 2011
Google Skipfish - Web Application Security Scanner
Viewed 1264 times since Mon, Mar 22, 2010
Google Web Toolkit - Version 2 Released
Viewed 1142 times since Tue, Dec 15, 2009
OpenCart - Open Source Shopping Cart
Viewed 1525 times since Fri, Jan 1, 2010
dygraphs JS Charts - Free JavaScript Charts
Viewed 1180 times since Sun, Dec 13, 2009
10 Tips for Writing Better CSS Code
Viewed 1276 times since Fri, Nov 27, 2009
jDigiClock - HTC Hero Style jQuery Digital Clock
Viewed 1210 times since Tue, Feb 16, 2010
Advanced Backup System - PHP Backup Script
Viewed 1271 times since Wed, Jul 28, 2010