Reader
  • Home
  • About
  • Deals
  • Services
  • Contact

Lightweight & Easy to Use JavaScript Modal Windows: TinyBox2

Last updated on March 11th, 2011 by Gabriel Livan

TinyBox2 is a lightweight (under 5 kb) modal box script that supports iframes and images natively. You can POST using AJAX as welll as callback functions can be passed for load and close events. Clicking ESC will close the modal window. The default styling can be overridden by setting CSS IDs. The script is executed by passing an object due to the large number of options. There is nothing to initialize. You just have to call the function on whatever mouse or browser event you like.

Sample Call
TINY.box.show({url:'advanced.html',width:300,height:150}).

Features include:

  • Support for HTML, IFRAME, URL, or image parameters
  • Easily expand and contract a popup on the fly
  • Fixed Width/Height, Light Mask, Custom Vertical Split
  • Custom Position
  • Enable/disable mask/animation/close button
  • Modal Box closes when pressing `ESC`


  • Source: http://www.scriptiny.com/2011/03/javascript-modal-windows/
  • Demo: http://sandbox.scriptiny.com/tinybox2/

Filed Under: AJAX, jQuery

About Me

Gabriel LivanHey, there! I'm Gabriel Livan, Web Developer, Blogger and Internet Marketer. I love making fast, secure and scalable web applications, running and travelling around the world. I blog about WordPress, site speed & security and quality tools for web professionals. Read more

What are you looking for?

Categories

  • AJAX (22)
  • Deals (10)
  • Design (30)
  • eBooks (2)
  • Flash (19)
  • Freebies (11)
  • General (62)
  • Giveaways (1)
  • Graphics (27)
  • HTML & CSS (35)
    • Frameworks (9)
  • JavaScript (160)
    • Frameworks (8)
    • jQuery (89)
    • MooTools (14)
  • Page Loading Speed (2)
  • Photoshop (3)
  • PHP (113)
  • Reviews (8)
  • SEO (6)
  • Statistics (2)
  • Web Tools (13)
  • WordPress (27)
    • Plugins (15)
    • Snippets (4)
    • Tools (2)
    • Tutorials (6)

Copyright © 2026 · BitRepository.com - All Rights Reserved

  • Home
  • About
  • Contact