87,914
社区成员
发帖
与我相关
我的任务
分享
$(document).ready(function(){
$.fn.adjustPanel = function(){
$(this).find("ul, .con1_hide_table").css({ 'overflow' : 'hidden'}); //Reset subpanel and ul height
};
$(".con1_hide").adjustPanel();
$(window).resize(function () {
$(".con1_hide").adjustPanel();
});
$(".con1_hide a:first").click(function() {
if($(this).next(".con1_hide_table").is(':visible')){
$(this).next(".con1_hide_table").slideUp();
$(".con1_hide a").removeClass('active');
}
else {
$(".con1_hide_table").slideUp();
$(this).next(".con1_hide_table").slideToggle();
$(".con1_hide a").removeClass('active');
$(this).toggleClass('active');
}
return false;
});
});
for(int i=1;i<=100;i++)
{
$(this).find("ul, .con"+i+"_hide_table").css({ 'overflow' : 'hidden'});
}