$('ul#range-drop li#product1')
.css( {backgroundPosition: '-914px 0px'} )
.mouseover(function(){
if (!($('ul#range-drop li#product1 a').hasClass("current")) ) {
$(this).css( {background: "none"} );
$(this).parent().stop().animate({backgroundPosition: '-914px -12px' }, {duration:400, easing: 'easeInOutQuint'});
}
})
.mouseout(function(){
$(this).parent().stop().animate({backgroundPosition : '-914px 0px'}, {duration:400, easing: 'easeInOutQuint'});
});
このコード ブロックは、背景位置の値が異なるナビゲーション要素ごとに繰り返されます。