0
不止一個類我有以下腳本,動畫在我的導航項目的背景圖像精靈:剔除懸停功能
$j(function() {
$j(".menu-item:not(.current-menu-item) .bottom_nav").hover(function() {
$j(this).animate({
backgroundPosition : '0px 35px'}
, 300); }
, function() {
$j(this).animate({
backgroundPosition : '0px 0px'}
, 600); }
);
});
我現在想從懸停腳本排除第二類。我曾嘗試將它的形式:
$j(".menu-item:not(.current-menu-item, .current-menu-parent) .bottom_nav").hover(function() {
和
$j(".menu-item:not('.current-menu-item, .current-menu-parent') .bottom_nav").hover(function() {
但雙雙突破懸停腳本。
謝謝,這樣做的工作 – Nick