これは(.hover
)作品:jQueryの:.liveの問題()
$('a.directory:not(.trashContent), a.file:not(.trashContent)').hover(function() {
if (!dragged) $(this).find('a.suppr:first').show();
}, function() {
$(this).find('a.suppr:first').hide();
});
そして、これは動作しません(.live('hover')
を):
$('a.directory:not(.trashContent), a.file:not(.trashContent)').live('hover', function() {
if (!dragged) $(this).find('a.suppr:first').show();
}, function() {
$(this).find('a.suppr:first').hide();
});
任意のアイデアなぜですか?
「ホバー」はイベントタイプではありません。 'hover()'はjQueryで定義されたカスタムの簡略メソッドです。 –
fyiでは、 'live'は新しいバージョンのjqueryでは非推奨とみなされます。 –
代わりにmouseoutとmouseoverイベントを試しましたか? –