Article Diary - General Knowledge Digest

TinyBox - JavaScript Lightweight Modal Window Popup Script

TinyBox is a lightweight and standalone modal window script. At only 3.4KB it doesn’t include any slideshow capabilities built-in but it can display any AJAX or HTML content (from text to videos). Future versions will include additional features. It can also be used for images and auto hiding alerts. The popups fade in/out and dynamically size based on the content if enabled. The styling is completely customizable through the simple CSS. TinyBox does not depend on any JavaScript frameworks.

JavaScript Modal Window

With the auto-hide support, the script can be used to show notifications. To display a popup box use the following code:

TINY.box.show(’advanced.html’,1,300,150,1,3);

There is nothing to initialize, just start using the script. The TINY.box.show function takes 6 parameters:
  1. The HTML content for the box or the relative path to the AJAX source
  2. A toggle (true/false or 1/0) if the content is via AJAX
  3. The width of the window (use 0 for auto)
  4. The height of the window (use 0 for auto)
  5. A toggle (true/false or 1/0) to animate the window
  6. The time in seconds to wait before auto hiding the popup (optional).
This JavaScript Modal Window Script has been tested in all major browsers and is available free of charge for both personal or commercial projects under the creative commons license.

For a demo of TinyBox, click here.

Requirements: No Requirements
Compatibility: All Major Browsers

Website

Online Demo

Attached Files
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Name
Email
Security Code Security Code
Related Articles RSS Feed
What is Search Engine Optimization?
Viewed 1360 times since Fri, Jun 25, 2010
Advanced Backup System - PHP Backup Script
Viewed 1137 times since Wed, Jul 28, 2010
Free Under Construction Coming Soon Template
Viewed 1902 times since Sat, Mar 12, 2011
IE6 CSS Fixer - Web-Based IE6 CSS Fix Tool
Viewed 1043 times since Thu, Dec 31, 2009
13 Useful Javascript Syntax Highlighting Scripts
Viewed 1361 times since Mon, Jan 4, 2010
PHP Quiz Questions and Answers
Viewed 3347 times since Mon, Jan 11, 2010
How to password protect folder/files using htaccess file?
Viewed 983 times since Sun, Mar 14, 2010
Create A Page Peel Effect With CSS & jQuery
Viewed 1018 times since Tue, Jan 5, 2010
25 Graph & Chart Solutions For Web Developers
Viewed 33316 times since Mon, Feb 1, 2010
MENU