SqueezeBox - Expandable Lightbox (v1.1)
SqueezeBox is an unobtrusive LightBox inspired overlay, for modal boxed content on your site.
It’s a snap to show images but just as easy to use HTML elements, Ajax requests, iFrames, SWF movies and more.
Showcase “IFrame Content”
Include site content via IFrame.
The Action Happens Here
JavaScript & MooTools
window.addEvent('domready', function() { /** * That CSS selector will find all <a> elements with the * class boxed * * The example loads the options from the rel attribute */ SqueezeBox.assign($$('a.boxed'), { parse: 'rel' }); });
XHTML Markup
<a href="http://mootools.net" class="boxed" rel="{handler:'iframe',size:{x:840,y:550}}"> MooTools.net in a box! </a> | <a href="http://groups.google.com/group/mootools-users" class="boxed" rel="{handler:'iframe',size:{x:500,y:500},iframePreload:true}" title="IFrame is preloaded"> MooTools Users Group </a>
This example and the accompanying sources/assets are © 2008-2009 by Harald Kirschner and available under The MIT License. For debugging and profiling the scripts and their markup download Firefox and use addons like Firebug and Web Developer Toolbar.
349 Comments
Please use the support forums for discussing the project, asking questions or posting bug-fixes!