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 “Ajax Requests”
Request the content via Ajax.
The Action Happens Here
JavaScript & MooTools
window.addEvent('domready', function() { /** * That CSS selector will find all <a> elements with the * attribute rel="boxed" * * The second argument sets additional options. */ SqueezeBox.assign($$('a[rel=boxed]'), { size: {x: 300, y: 400}, ajaxOptions: { method: 'get' // we use GET for requesting plain HTML (you can skip it, it is the default value) } }); });
XHTML Markup
<a href="what-is.html" rel="boxed">What is it?</a> | <a href="extended.html" rel="boxed">Box with JavaScript</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!