.hover是在css里面设置的特效,这里做一个判断:
{pc:content action="category" catid="0" num="25" siteid="$siteid" order="listorder ASC"} <UL id="nav"> <LI><A{if !$catid} class="hover"{/if} href="{siteurl($siteid)}"><SPAN>首 页</SPAN></A> </LI> {loop $data $i $r} <li> <A class="" href="{$r[url]}"{if $catid==$r[catid] || $top_parentid==$r[catid]} class="hover"{/if} target="_blank"><span>{$r[catname]}</span></A> </li> {/loop} </UL> {/pc}
phpcms,phpcms导航,phpcms当前导航页选中