$('.theme-login').click(function(){ $('.theme-popover-mask').show(); $('.theme-popover').slideDown(300); }) $('.theme-poptit .close').click(function(){ $('.theme-popover-mask').hide(); $('.theme-popover').slideUp(300); }) $('.theme-gologin').click(function(){ $('.theme-signin').fadeIn(); }) $('.theme-tabs li').each(function(e){ $(this).click(function(){ $(this).addClass('active').siblings().removeClass('active'); $($('.theme-main')[e]).fadeIn(200).siblings('.theme-main').hide(); }) })