<!--{eval $mnid = getcurrentnav();}-->
<!--{eval $mnid = getcurrentnav();}-->用于判断高亮,也就是当前所属栏目!比如<ul>
<!--{loop $_G['setting']['navs'] $nav}-->
<!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}--><font color="#ff0000"><li {if $mnid == $nav}class="a" {/if}$nav></font></li><!--{/if}-->
<!--{/loop}-->
</ul>以上代码中的
<li {if $mnid == $nav}class="a" {/if}$nav>结合
<!--{eval $mnid = getcurrentnav();}-->在页面中,当我们访问的栏目属于导航上的米一个链接时,自动加上一个!class="a"
哦哦哦哦哦哦哦
页:
[1]