Is jQuery Tools Tooltips only about 90% reliable?

2019-04-15 00:50发布

问题:

jQuery Tools 1.2.5 Tooltip seems quite slick and fancy, but I added it to our development site, and it works 90% of the time. Sometimes, the mouse hover over a tab and no tooltip shows up, and sometimes, the mouse leave the tab and the tooltip is still there. (even on Firefox or Chrome)

Why can that be?

Also, on IE 7, the tooltip (which is HTML, not just text), will pop out a different div, not the one that contains the tooltip. (on IE 8 and 9, it works fine). So I guess it works 90% of the time for me... and that's not good enough if it is not 99.9%. So right now I am thinking either debugging it or use another tooltip, any suggestion? Or is the standard jQuery Plugin Tooltip the most reliable? There are 30 of them on this page... that's just too much!

回答1:

The jQuery Tools 1.2.5 Tooltip plugin is garbage in my opinion. The tool tips often pop-up partially hidden and sometimes don't pop-up at all. It doesn't matter what fancy features they add, if the basic tooltip functionality isn't reliable, the extra fanciness is useless.

jQuery Plugin Tooltip is much more reliable, pops up every time, and in a good non-obscured position.



回答2:

Ok, I tried some more and it turns out that the prepackaged "full" version of jQuery 1.4.2 with jQuery Tools work well, about 99.9% of the time (for the Tooltips with sliding effect and HTML style tooltips). (Update: I tried again today, and it is only 95% reliable... sigh...)

In http://flowplayer.org/tools/download/index.html

<!-- jQuery Library + ALL jQuery Tools -->
<script src="http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js"></script>

I was using with our jQuery 1.5.1 and it worked only 90% of the time, and jQuery Tools wasn't updated for about half a year... (the stable version)... so I guess it does have some compatibility issue with the newest jQuery. I think at a point I was trying with 1.4.4 and it didn't work too well either as I recall. But I suppose, with any library, try it with all the pre-packaged libraries it depends on. Just that if another library our project uses depends on jQuery 1.5.1, then it can be harder to use both 1.4.2 and 1.5.1.