2011-09-13 5 views
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> 
+1

[Jqueryにホバリングしたときに複数の画像要素がすべて褪色する可能性がある]の重複の可能性。(http://stackoverflow.com/questions/7402897/multiple-image-elements-all-fading-when-hovered-in-jquery) –

+0

詳細「選択された分周器のみ」? – dmackerman

答えて

1

私はあなたのページのコードの残りの部分を見ることなく確認することはできませんが、<div class="tiles" id="fade_this"><div class="tiles">を交換しようとすると、変更される可能性があります$(".tiles img")$("#fade_this img")

+0

それは感謝しました。 –