Shadowbox.jsby Michael J. I. Jackson
Shadowbox supports the following browsers:
Quirks mode is not supported in any browser, but that doesn't necessarily mean that it won't work. This means that you need to use either a strict or transitional DOCTYPE in order to use Shadowbox. For example, placing the following snippet at the very top of your HTML page will tell browsers that you want it displayed using a strict set of standards:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
For more information on using DOCTYPEs and why you should always use them, read this article.
- Yahoo! User Interface Library (requires yahoo-dom-event.js)
- Ext (requires ext-core.js)
- MooTools (requires 1.2 Core)
- Dojo Toolkit
If you haven't already done so, you'll want to read the usage page to find out how to properly use the adapter of your choice with Shadowbox.
Flash video is supported via Jeroen Wijering's JW FLV Player. Although Shadowbox supports many types of video, it is recommended that all video be displayed in this (FLV) format because it will have the most uniform result across different platforms. QuickTime and Windows Media Player each have their bugs and quirks that are difficult to iron out.
Shadowbox uses a smart plugin detection mechanism that automatically detects whether or not the client is capable of displaying linked content. For movies that can be played using either QuickTime or Windows Media Player, Shadowbox will automatically detect which one is installed and use it. In the case of a missing plugin, Shadowbox can either display a useful error message with a link to the appropriate plugin download page (the default behavior), or it can ignore the gallery piece altogether. See the handleUnsupported option in the options section below for more details on how to configure this behavior.
If you think you've found a bug in the script, please let me know about it via the issue tracking system on Google Code (where this project is hosted). You'll have a much better chance of actually getting the bug fixed if it's well documented and an example is provided.