/    Sign up×
Community /Pin to ProfileBookmark

Close cluetip when the mouse is out of the link

Is it possible to close cluetip when the mouse is of from the link? There is mouseOutClose option but it doesn’t close cluetip if you don’t hover the cluetip itself first. The problem is caused by the sticky option set to true but I can’t make it false because I need to keep cluetip opened if the mouse is over the cluetip box itself.

cluetip can be closed using [B]$(document).trigger(‘hideCluetip’);[/B] function so I tried adding [B]onmouseout=”$(document).trigger(‘hideCluetip’);”[/B] but it closes cluetip even the mouse is over the cluetip itself…

Plugin page:
[url]http://plugins.learningjquery.com/cluetip/demo/[/url]

Here is my html code:

[code=html]<a class=”jt” href=”ajax6.htm” rel=”ajax6.htm” title=”jTip Style!”>[/code]

This is javascript:

[code=html]$(‘a.jt:eq(0)’).cluetip({
cluetipClass: ‘jtip’,
arrows: true,
dropShadow: false,
hoverIntent: false,
sticky: true,
mouseOutClose: true,
closePosition: ‘title’,
closeText: ‘<img src=”cross.png” alt=”close” />’
});[/code]

And the cluetip core code of course:
[url]http://github.com/kswedberg/jquery-c…ery.cluetip.js[/url]

Any ideas?

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @levani spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...