ript type="text/javascript"> $(function(){ //头部导航动画 var winHeight = $(document).scrollTop(); $(window).scroll(function() { var scrollY = $(document).scrollTop(); if (scrollY > 60){ $('.top-title').addClass('hiddened'); } else { $('.top-title').removeClass('hiddened'); } if (scrollY > winHeight){ //如果没滚动到顶部,删除显示类,否则添加显示类 $('.top-title').removeClass('showed'); } else { $('.top-title').addClass('showed'); } }); $(".show_more").on("click",function(){ var text_name=$(this).text(); if(text_name=="更多>>"){ $(this).text("收起>>").css("margin-left","75px"); $(this).siblings(".more").show().css("margin-left","64px"); }else{ $(this).text("更多>>"); $(this).siblings(".more").hide(); } }); });