Hover not working with jQuery Tools - jQuery

萝らか妹 提交于 2019-12-20 04:38:13

问题


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>

回答1:


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? :)



来源:https://stackoverflow.com/questions/7164204/hover-not-working-with-jquery-tools-jquery

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!