yes, I agree with Klaus on this one, and actually thought I had built
in that feature.
I declare the variable so it can be used in the clueTip:
var tipTitle = $this.attr(defaults.titleAttribute) // default
titleAttribute is "title", of course
then on show, I remove the attribute from the original element:
if (tipTitle) {
$this.removeAttr('title');
}
and replace it on hide :
if (tipTitle) {
$this.attr('title', tipTitle);
}
Not sure why it's not working for you, but I'll investigate.
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jul 23, 2007, at 8:42 AM, Web Specialist wrote:
Wow! Thanks for the fast response. Please look this image:
How to remove the hint(native IE) message? Is it possible(using
title argument for clueTip plugin)?
Cheers
2007/7/23, Klaus Hartl <[EMAIL PROTECTED]>:
Web Specialist wrote:
> Karl,
>
> I'll want to suggest a little change in your clueTip plugin.
Using this
> code:
>
> <A class="cluetip_Help"
> id="http://localhost/local/cluetip/demo/ajax4.htm" title="Testing
new
> clueTip Plugin">
> Test
> </A>
>
> will display the hint for that link. This occurs because IE "reads"
> title argument and displays that hint(native function).
>
> Using this code resolve it:
>
> <A class="cluetip_Help"
> id="http://localhost/local/cluetip/demo/ajax4.htm"
> title_clueTip="Testing new clueTip Plugin">
> Test
> </A>
>
> and changing in jquery.cluetip.js:
>
> // set up default options
> var defaults = {
> ...
> titleAttribute: 'title_clueTip',
>
>
> Cheers
Instead of using an invalid attribute, the plugin should just
remove the
title attribute if it exists - because that's what it does, enhancing
existing functionality...
--Klaus
<karl_plugin.GIF>