黒から透明のグラデーションのメニューがあります。メニューにカーソルを合わせると、完全に黒く塗りつぶされます。次が機能しないのはなぜですか?
$('#topmenu').hide().animate({
'height': 'toggle'
}, "slow").hover(function() {$(this).animate({ 'opacity' : 1 }).css( 'background' , 'rgb(0,0,0)', 'box-shadow' , "0px 5px 15px 0px rgba(0, 0, 0, 0.5)" );}, function() {$(this).animate({ 'opacity' : 0.6 }).css( 'background' , "url('<?php bloginfo('template_url'); ?>/images/topmenu_bg.png') repeat-x" );});
メニューのbg画像は、プロパティ「background」を使用してスタイルシートを介して設定されます。
ありがとうございました。