Aivan Sixcks
Aivan Sixcks

Reputation: 23

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>

Upvotes: 0

Views: 127

Answers (2)

Blazemonger
Blazemonger

Reputation: 92893

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

Upvotes: 0

wesbos
wesbos

Reputation: 26317

Get some semi-colons!

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

Upvotes: 1

Related Questions