文件:
代码
function fntoshow(catid){
if($('#ul'+catid).css('display')=='none'){
$('#ul'+catid).slideDown();
}
}
代码:
{pc:content action="category" catid="$top_parentid" num="15" siteid="$siteid" order="listorder ASC"}
{loop $data $r}
{if $r[catid]==$catid}
{if $r[child]}
{pc:content action="category" catid="$r[catid]" num="15" siteid="$siteid" order="listorder ASC"}
{loop $data $v}
{/loop}
{/pc}
{/if}
{else}
{if $r[child]}
{pc:content action="category" catid="$r[catid]" num="15" siteid="$siteid" order="listorder ASC"}
{loop $data $v}
{/loop}
{/pc}
{/if}
{/if}
{/loop}
{/pc}