Hi, is it possible to keep the tooltip open as long as the mouse is over the displayed toolitip? Basically changing the logic a bit - found a few web pages where you can do it in the native jquery coding, but if that could be drupalized for this module (incorporated into the functions - I don't know the right places to do it, and it looks like it would require the timer being a variable that could be shared between the item that has the tooltip, and the tooltip itself)

A good online demo of the desired effect, not using tipsy:
http://www.projectseven.com/products/tools/tooltips/tutorials/quick-tuto...

The solutions in straight jquery using tipsy:
http://efreedom.com/Question/1-3637145/Keep-Tipsy-Tooltip-Fading-Mousing

(and a slightly modified version of the code that works completely as far as I can tell; the code on that link doesn't preserve the mousout-of-the-item-that-has-the-tooltip functionality):

$('#mylink').attr('title','Input here:<input id="toolbar">');
$('#mylink').tipsy({trigger:'manual',gravity:'w', html:true});

var timer;

$('.tipsy').live('mouseover',function(e){
   clearTimeout(timer);
});

$('.tipsy').live('mouseout',function(e){
    timer = setTimeout("$('#mylink').tipsy('hide');",500);//hide the link in 3 seconds
});

$('#mylink').bind('mouseover',function(e){
     $(this).tipsy('show');
 });

$('#mylink').bind('mouseout',function(e){
     timer=setTimeout("$('#mylink').tipsy('hide');",500);
});

Bottom line, I'm trying to apply this to a popup login form without having to add a new module to do it (we're already using tipsy which looks pretty nice) - to free up the real estate that the normal login form consumes (and it degrades to non-javascript nicely by just making it a link to the default login page, /user ) So if there's a better way please let me know. Thanks!

Comments

caver456’s picture

PS - can this just be hardcoded to apply to all tooltips, or, as an option in the tipsy GUI in drupal, i.e. a checkbox for 'keep tooltip open as long as mouse is over the displayed tooltip' or such?

Gabriel R.’s picture

Subscribe

Anonymous’s picture

Any solutions yet?

Blue’s picture

I'm also interested in this for Drupal 7

ram4nd’s picture

Issue tags: -tooltips, -tooltip, -login form

.live() is deprecated in jQuery. Use .on() instead.

ram4nd’s picture

Status: Active » Needs work
ram4nd’s picture