调用代码:(注意:hover为判断当前高亮css样式)
[e:loop={"select classname,classpath,classid from phome_enewsclass where bclassid='".$class_r[$GLOBALS[navclassid]][bclassid]."' and showclass=0 order by classid ",0,24,0}] <?php $class=""; if($bqr[classid]==$GLOBALS[navclassid]) { $class='hover'; } ?> <a href="<?=$bqsr[classurl]?>" class="<?=$class?>"><?=$bqr[classname]?></a> [/e:loop]
OK!搞定,