scaron / prettyphoto

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.
http://www.no-margin-for-errors.com/projects/prettyPhoto-jquery-lightbox-clone/
553 stars 281 forks source link

specify description attribute src #93

Closed dan-nl closed 12 years ago

dan-nl commented 12 years ago

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.

scaron commented 12 years ago

Thanks for the request.

I won't merge it, but I plan on using data- attributes in prettyPhoto 4.0.