且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

悬停不能使用jQuery工具 - jQuery

更新时间:2023-10-17 12:54:10

如果您切换颜色插件和工具< script> 标记动画作品

http://jsfiddle.net/pxfunc/gJjAZ/

问题是:是否使工具提示不起作用? :)

When I add jQuery Tools to my page, hover effect on links doesn't work. Without it, it works.

<script src="jquery.js"></script>
<script src="jquery.color.js"></script>
<script src="http://cdn.jquerytools.org/1.2.5/jquery.tools.min.js"></script>
<script>
$(function() {
$("a").hover(
function() {
    $(this).animate({color: "white"}, 400);
}, function() {
    $(this).animate({color: "black"}, 400);
});
});
</script>

If you switch the color plugin and the tools <script> tags the animation works

http://jsfiddle.net/pxfunc/gJjAZ/

Question will be: does that make the tooltip not work? :)