title="This is a description | <img src="image">"
Hmm. I can see how that would be a major problem. I wouldn't recommend
trying to put a dom element into a title attribute. Also, the browser
will see the title attribute as:
title="This is a description | <img src="
Rather than use the title attribute for the entire cluetip contents,
maybe you could look into using it just for the title and then passing
in the img through a function as the first argument.
you can optionally call the cluetip method with a function reference/
anonymous function or string as its first argument:
$('a').cluetip(myfunction, {/*my options*/});
$('a').cluetip(function() { return 'something'; }, {/*my options*/});
$('a').cluetip('something', {/*my options*/});
--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jan 12, 2009, at 7:47 PM, BadMrFrosty wrote:
Hi there,
I've been having some problems getting cluetip to show an image.
essentially i just want it to work like this:
title="This is a description | <img src="image">"
and then I need the whole thing to be linked as well.
any thoughts?