Skip to main content

Posts

Showing posts with the label prettyphoto

prettyPhoto, “title” and tooltips

In prettyPhoto, how can I have the photo description come from something other than "title" (added to <a> tag surrounding the <img>)? When hovering over the image, it displays ugly html on my website that I only want to be seen and displayed by prettyPhoto when it opens (hence it contains html), but not as a tooltip. One thought I had was to plug into an event but the only one relevant is changepicturecallback, and I can't figure out how to access the current photo element from that. Maybe it's something in jQuery itself but I'm a little lost as to where to find it. Any idea would help. Thanks, Igor