Reputation: 23
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>
Upvotes: 0
Views: 127
Reputation: 92893
Set the 'cancelDefault' property to false. http://flowplayer.org/tools/tooltip/index.html
Upvotes: 0
Reputation: 26317
Get some semi-colons!
$(function() {
$("a").hover(
function() {
$(this).animate({color: "white"}, 400);
}, function() {
$(this).animate({color: "black"}, 400);
});
});
Upvotes: 1