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
精彩评论