0
私のページにフェード効果を追加しようとしていますが、このコードを追加すると、表示するように設定された他の画像が作成されます。cssは再表示されません。選択された分周器のみ?Jqueryが隠し画像を表示するためにフェードアウトする
<div class="tiles">
「ここに画像コード」
<script>
$(document).ready(function(){
$(".tiles img").fadeTo("slow", 1.0); // This sets the opacity of the thumbs to fade when the page loads
$(".tiles img").hover(function(){
$(this).fadeTo("slow", 0.6); // This should set the opacity on hover
},function(){
$(this).fadeTo("slow", 1.0); // This should set the opacity back on mouseout
});
});
</script>
[Jqueryにホバリングしたときに複数の画像要素がすべて褪色する可能性がある]の重複の可能性。(http://stackoverflow.com/questions/7402897/multiple-image-elements-all-fading-when-hovered-in-jquery) –
詳細「選択された分周器のみ」? – dmackerman