On Mar 4, 2009, at 8:32 AM, Jonny Stephens wrote:
At present I'm triggering Cluetip thus, with Cluetip using the anchor title attributes for tip titles: <a id="content-1" href="#content-1" rel="#content-1" title="Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore">Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore</a> Is there a way to skip the title attribute and instead use the anchor text for the Cluetip title? i.e. <a id="content-1" href="#content-1" rel="#content-1" >Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore</a> Thanks Jonny
Hi Jonny, First, grab the latest version here: http://github.com/kswedberg/jquery-cluetip/tree/master And then pass in a function for the first argument: For example: $(document).ready(function() { $('a').cluetip(function(el) { return $(el).text(); }); }); If you want to set some options, you can do that in the second argument: $(document).ready(function() { $('a').cluetip(function(el) { return $(el).text(); }, { sticky: true }); }); Hope that helps. --Karl ____________ Karl Swedberg www.englishrules.com www.learningjquery.com