prettyPhoto is a jQuery based lightbox clone. Not only does it support images, it also add support for videos, flash, YouTube, iFrames. It’s a full blown media lightbox. The setup is easy and quick, plus the script is compatible in every major browser.
adding in the ability to specify which element attribute should be used for pulling the description in the lightbox overlay; defaults to title for bc. this allows you to use an html5 custom attribute such as data-description rather than the default title attribute. the use of the html5 custom attribute also allows you to avoid the problem of the title tooltip displaying html markup if that is what you have in the attribute.
adding in the ability to specify which element attribute should be used for pulling the description in the lightbox overlay; defaults to title for bc. this allows you to use an html5 custom attribute such as data-description rather than the default title attribute. the use of the html5 custom attribute also allows you to avoid the problem of the title tooltip displaying html markup if that is what you have in the attribute.