帝国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;
?>

 

posted @ 2015-08-19 19:11  柠檬可乐  阅读(250)  评论(0编辑  收藏  举报