Board Logo

Tigra Hints picture caption
JerenB - 8/27/2007 at 05:46 AM

Hopefully someone can help me. I'm trying to use tigra hints for pictures on a website. For the life of me I cant figure out how to make a caption at the bottom of the pop up picture. In the examples provided it shows the caption "This is a puma." How would I be able to add something like that to my pictures?

tigra - 8/27/2007 at 07:51 PM

Basically you give the script the HTML to display in the pop-up. If you want to add some text to the image you show then just put that in the HTML. For example instead of:

'tt1': '<img src="img/k001.jpg" border="1" />',
give it
'tt1': '<img src="img/k001.jpg" border="1" /><div>Your text here</div>',

feel free to use tables or CSS for formatting inside the hint.

JerenB - 8/28/2007 at 02:47 AM

Thanks for the information. It looks like it's working great now.

Back to forum: