jQuery(".slideBox").slide({ mainCell: ".bd ul", autoPlay: true, delayTime:1000, easing:'easeOutQuad', }); $(function(){ var num=$('#slideBox').find('li').size(); $('.bcount').text(num); }) $(function(){ if($(".pro-det-l2con-1 .p-cate2 p").height()<=28){ $(".p-zhanshou").hide(); }else{ $(".pro-det-l2con-1 .p-cate2 p").height('28px'); } $(".p-zhanshou").click(function(){ var moreheight=$(".pro-det-l2con-1 .p-cate2 p").height(); if(moreheight<=28){ $(this).text("鏀惰捣鈭?); $(".pro-det-l2con-1 .p-cate2 p").animate({height:'100%'},"slow"); }else{ $(this).text("灞曞紑鈭?); $(".pro-det-l2con-1 .p-cate2 p").animate({height:"28px"},"slow"); } }) })