New JavaScript Popup Box -TinyBox
TinyBox is a lightweight {Almost 3.5KB} modal window script. it allows you to add any AJAX or HTML content and can also be used for images and auto-hiding alerts.
The popups fade in/out and dynamically size based on the loaded content if enabled.
you can easily customize the style of pop-ups fade in /out through the simple CSS. if you want to use Tiny Box JavaScript Popup Box in your project use the following code:
It is very easy to use Tiny box, There is nothing to initialize, just start using the script by using there 6 parameters of Tiny box ;
- 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 loaded 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.
- The time in seconds to wait before auto-hiding the popup.
Tiny Box has been tested on Firefox 2/3, IE 6/7/8, Opera, Safari, and Chrome. This script is available free of charge for any project, personal or commercial, under the creative commons license.
Screenshot of Tiny Box JavaScript Popup Script :
1. Advanced content came from an AJAX request :

2. Image :

3. Auto-Hide :
