I donβt know what you looked like, but a quick search for jQuery google hint gave me http://flowplayer.org/tools/tooltip/index.html (I used my scrollable plugin for some time, really :)
from your site:
The jQuery Tooltip allows you full control when the tooltip is shown or hidden. You can specify different events for different types of elements. You can control this behavior with events, which has the following default values:
events: { def: "mouseenter,mouseleave", // default show/hide events for an element input: "focus,blur", // for all input elements widget: "focus mouseenter,blur mouseleave", // select, checkbox, radio, button tooltip: "mouseenter,mouseleave" // the tooltip element }
using 'click' should do the trick. (I have not tested it)
however, if all else fails, you can still fake it using the "script api", just call .show () and .hide ()
Edit:
Since click, click does not work exactly as I thought it would be, I offer you a workaround. I really hope that there is a better way to achieve the same result. I tested it with a local copy of http://flowplayer.org/tools/tooltip/index.html and it works as expected.
var tooltip = $("#dyna img[title]").tooltip({ events: { def: ",", // default show/hide events for an element tooltip: "click,mouseleave" // the tooltip element }, // tweak the position offset: [10, 2], // use the "slide" effect effect: 'slide' // add dynamic plugin with optional configuration for bottom edge }).dynamic({ bottom: { direction: 'down', bounce: true } }); tooltip.click(function() { var tip = $(this).data("tooltip"); if (tip.isShown(true)) tip.hide(); else tip.show(); });
But I suggest you take a look at qTip, as suggested by user834754, you might like more.