2011-08-22 12 views
0

jQuery Toolsをマイページに追加すると、リンク上のホバー効果が機能しません。それがなければ、それは動作します。ホバーが動作しない

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

これは完全なソースですか? '' 'jQuery''自体を必ず含んでください。 – McHerbie

答えて

1

セミコロンを取得してください。

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

ああ、それを逃した..しかし、まだ動作しません。 –

0

「cancelDefault」プロパティをfalseに設定します。 http://flowplayer.org/tools/tooltip/index.html

+0

使い方は?メインファイルを編集しますか? –

+0

ツールチップを作成するときの環境設定を行います: '$("。trigger ")。tooltip({cancelDefault:true});' – Blazemonger

関連する問題