Skip to content

Instantly share code, notes, and snippets.

@zhoumengkang
Created March 3, 2014 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhoumengkang/9319405 to your computer and use it in GitHub Desktop.
Save zhoumengkang/9319405 to your computer and use it in GitHub Desktop.
//导航
$('.nav ul li').hover(function(){
var index=$(this).index()-1;
var L=index*91;
$(this).parent().find('.on').stop().animate({left:L});
$('.nav ul li a').css('color','#e0e0e0');
$(this).find('a').css('color','#fefefe');
$(this).click(function(){
$(this).find('.nav_down').slideDown();
})
},function(){
$(this).find('.nav_down').slideUp();
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment