找到e/class/userfun.php,加入下面代码
function currentPage($classid,$thisid){ global $class_r; $fr=explode('|',$class_r[$classid][featherclass]); $topbclassid=$fr[1]?$fr[1]:$classid;//取得第一级栏目id if ($topbclassid==$thisid) { echo "menuon"; } else { } }
menuon是CSS样式名,可自己定义
导航这样写
?[e:loop={'select classid,classname,classpath from [!db.pre!]enewsclass where bclassid=0 and showclass=0 order by myorder',0,24,0}]
<li id="cid<?=$bqr[classid]?>" class="<?=currentPage($GLOBALS[navclassid],$bqr[classid])?>">
<a href="<?=$public_r[newsurl]?><?=$bqr[classpath]?>" title="<?=$bqr[classname]?>" target="_self"><?=$bqr[classname]?></a>
</li>
[/e:loop]
OK了