帝国cms建站-动态获取栏目id
<?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; ?>
<?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; ?>