
Click here for the latest version.
TinyBox is a lightweight and standalone modal window script. At only 3.4KB it doesn’t include any slideshow capabilities built-in but allows for any AJAX or HTML input so the sky is the limit. 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. I have a couple tutorials and a few scripts I will be posting very soon so check back.
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: the HTML content for the box or the relative path to the AJAX source, a toggle (true/false or 1/0) if the content is via AJAX, the width of the window (use 0 for auto), the height of the window (use 0 for auto), a toggle (true/false or 1/0) to animate the window, and the time in seconds to wait before auto hiding the popup (optional).
This 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. Community support is available here. Paid support is also available, contact me for details.
Click here to download the source code.
Update 11/15/2009 – Updated logic to speed up the animation and fix a positioning issue. Slightly dropped the code weight.
Update 11/16/2009 – Fixed issue that occurred when sizing down a box.

Pingback: TinyBox, ventanas emergentes en solo 3.5kb : Blogografia
Pingback: Lightweight Modal Window Script: TinyBox :: Graficznie
Pingback: TinyBox: Lightweight Modal Popup | amolwable
Pingback: Lightbox Style Javascript Popup Box « blog.joeldelane.com
Pingback: Tinybox: javascript Popup | Eliseos.net
Pingback: Azeem Azeez | Blogs | CSS and Javascript articles roundup
Pingback: Lightweight Modal Window Script: TinyBox | rapid-DEV.net
Pingback: X-Find---> Flash, Php, Css, Xml: tutto FREE!
Pingback: Top 7 Modal Dialog Boxes Using Javascript (Comparison)
Pingback: Links and Links… : ArenaGeek
Pingback: TinyBox JavaScript Popup Box – 3.5KB « Web Development
Pingback: TinyBox - a Lightweight and Standalone Modal Window Script
Pingback: TinyBox – a Lightweight and Standalone Modal Window Script » Shai Perednik.com
Pingback: Poker Genio – Genios del Poker » Clasificación General
Pingback: In page pop up javascripts or modalbox | wordpressapi.com
Pingback: Reference blog
Pingback: Web Programming: Javascript TinyBox JavaScript Popup Box – 3.4KB « Let's share and win the challenge of life
Pingback: TINYBOX – 一种轻便的独立模式窗口脚本
Pingback: TinyBox开源项目 - Ajax代码大全 - Java开源项目 - Java免费软件 - Lightbox - TinyBox - 开源网
Pingback: Body Groove – The Natural Way To Change Your Body | Body Groove
Pingback: Linkdump #28: Scriptu, scriptu, JavaScriptu! « Tomasz Kowalczyk
Pingback: [javascript]간단한popupbox - 생각하는 하루 » 생각하는 하루
Pingback: Netflow Developments » Blog Archive » Not all Javascript popup boxes are created equal