- $('a', '#nav').hover(function() {
- if(!$(this).parent().hasClass('current')) {
- $(this).stop().animate({
- backgroundPosition: '(0 -75px)'
- });
- }
- }, function() {
- if(!$(this).parent().hasClass('current')) {
- $(this).stop().animate({
- backgroundPosition: '(0 -0)'
- });
- }
- });
- //该片段来自于http://www.codesnippet.cn/detail/010320132275.html
来源: http://www.codesnippet.cn/detail/010320132275.html