开发者

Hover not working

开发者 https://www.devze.com 2023-03-30 02:06 出处:网络
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>

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

精彩评论

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