Home » Categories » Business » Web Development

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

Attachments Attachments
There are no attachments for this article.
Comments Comments
There are no comments for this article. Be the first to post a comment.
Related Articles RSS Feed
Speech Bubbles With Pure CSS3
Viewed 1223 times since Fri, Mar 12, 2010
jQuery Slider from a Select Element
Viewed 2925 times since Thu, Jan 14, 2010
PHP For Android Project - Interview with Lead Developer
Viewed 1601 times since Mon, Jul 26, 2010
tgrdfgdgfdg
Viewed 471 times since Sun, Jan 17, 2010
How can I change session timeout value?
Viewed 475 times since Tue, Apr 27, 2010
Google Web Toolkit - Version 2 Released
Viewed 470 times since Tue, Dec 15, 2009
Replace Fear With Knowledge of Martial Arts Styles
Viewed 590 times since Mon, Jul 4, 2011
8 Basics of Regular Expressions
Viewed 458 times since Mon, Mar 8, 2010
Geo-location Mapping With Google Maps API & PHP
Viewed 1718 times since Mon, Apr 4, 2011
How do I setup and use SSH?
Viewed 534 times since Thu, Oct 15, 2009