$('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)' }); } }); Slides up and down the background image of a link when rolled over. Requires background position plugin.
this is amazing.thanks for sharing
The reference url has gone 404 on September 28, 2010.