http://farshadzandi.caで見られる金色のボタン効果を生成するために、div の背景をアニメーション化しています。
コードは次のとおりです。
$(function(){
$(".navigation").hover(function(){
$(this).children('.background').stop(true,true).animate({opacity: 1},250);
}, function(){
$(this).children('.background').stop(true,true).animate({opacity: 0},250);
});
});
$(function(){
$(".lower-navigation").hover(function(){
$(this).children('.lower-background').stop(true,true).animate({opacity: 1},250);
}, function(){
$(this).children('.lower-background').stop(true,true).animate({opacity: 0},250);
});
});
これは Firefox/Chrome では正常に動作しているのに、ページの読み込み時に IE で背景画像が表示される理由を誰か教えてもらえますか? ありがとうございました!