帝国cms建站-动态获取栏目id

时间:2022-04-08 15:08:48
<?php
$fcr=explode('|',$class_r[$GLOBALS[navclassid]][featherclass]);
$topbclassid=$fcr[1]?$fcr[1]:$GLOBALS[navclassid];//取得当前栏目的*栏目ID
$m = "<script>var fnav='#firid'+$topbclassid;$(fnav).addClass('nav01');</script>";
echo $m;
?>