多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
~~~ <div id="nav" class="nav"> <ul id="top"> <li id="nav_0"><a href="/"><span class="fl"><img src="../Public/images/nav_{if 0==$bcid}1{else}2{/if}.jpg" alt="{$site_name}" ></span></a></li> <YP:subcat catid="0"> <li id="nav_{$r[id]}"{if $r[id]==$bcid} class="on"{/if}> <a href="{$r.url}"><span>{$r.catname}</span></a> {if $r['child']==1} <ul> <YP:subcat catid="$r[id]" id="res"> <li><a href="{$res.url}"><span {if $res['child']==1} class="fd" {/if}>{$res.catname}</span></a> {if $res['child']==1} <ul style="top: 0px; visibility: visible; left: 167px; width: 167px; display: none; "> <YP:subcat catid="$res[id]" id="rees"> <li><a href="{$rees.url}">{$rees.catname}</a></li> </YP:subcat> </ul> {/if} </li> </YP:subcat> </ul> {/if} </li> </YP:subcat> </ul> </div> ~~~