ColorBox

I’ve blogged twice before about PrettyPhoto which is a kind of thickbox/lightbox that I enjoy working with, but recently I’m looking at ColorBox, which is another one of the same style of plugins to use and I think works really well.

According to the website ColorBox is tested In: Firefox 2 & 3, Safari 3 & 4, Opera 9, Chrome, Internet Explorer 6, 7, 8. (I haven’t confirmed in all browsers as of yet, but it looks good in Firefox 3.5 and IE7/IE8 that I’m aware of.)

You can read more here about what it offers. But among it is :

  • Supports photos, photo groups, slideshow, ajax, inline, and iframed content.
  • Lightweight: only 9KB of JavaScript.
  • Appearance is completely controlled through CSS so users can restyle the box.
  • Behavior settings can be over-written without altering the ColorBox javascript file.
  • Completely unobtrusive, requires no changes to existing HTML
  • Preloads background images to avoid flash of unstyled content on first use.
  • Can preload upcoming images in a photo group.
  • Written in jQuery plugin format and can be chained with other jQuery commands.
  • Generates W3C valid XHTML and CSS, adds no JS global variables & passes JSLint.
  • Released under the MIT License.