{pc:content action="category" catid="0" num="20" siteid="$siteid" order="listorder ASC"}
{loop $data $r}
{if $r[ismobilemenu] == 1}
{/if}
{/loop}
{/pc}
$('#menu').live("click",function(){
var navObj = $(".nav");
currentHeight = navObj.height();
if (currentHeight == 0) {
autoHeight = navObj.css('height','auto').height();
navObj.height(currentHeight).animate({height: autoHeight}, 500);
} else {
navObj.height(currentHeight).animate({height: "0px"}, 500);
}
});
通过以上代码即可实现效果
通过以上代码即可实现效果