Hide Image Title in Slimbox

Posted by Stephen on Stack Overflow See other posts from Stack Overflow or by Stephen
Published on 2009-07-27T00:17:17Z Indexed on 2010/05/08 8:58 UTC
Read the original article Hit count: 256

Filed under:
|

My issue is a lot like this solved thread, except I'm using Slimbox 2:

http://stackoverflow.com/questions/940994/hide-image-title-tool-tip-popup-on-mouse-rollover-or-hover

When you hover over an image, the "Title" attribute pops up. I need HTML in my image title in Slimbox. So, of course, when you're hovering, the "Title" attribute shows all the HTML code. The code works perfectly when you're viewing the image in Slimbox so no problems there. I just need the Title attribute to be hidden/modified not to show this HTML code.

I tried to change Q.title in slimbox.js to something else (like captionname). Then changed the HTML to call for:

<a href="images/team/large.jpg" title="Joe Smith" captionname="URL" rel="lightbox-team"><img src="images/team/small.jpg" class ="headline" border="1" hspace="2" /></a>

"Joe Smith" displays as the Title but when you view the image in Slimbox, captionname does not come up at all and neither does the Title. It's just blank where it should be.

What do I need to modify in slimbox2.js to make this work?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about slimbox