开发者

Hover not working

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

<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>


Get some semi-colons!

$(function() {
$("a").hover(
function() {
    $(this).animate({color: "white"}, 400);
}, function() {
    $(this).animate({color: "black"}, 400);
});
});


Set the 'cancelDefault' property to false. http://flowplayer.org/tools/tooltip/index.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜