網(wǎng)(LieHuo.Net)教程 導(dǎo)航條的分劃符采用CSS進(jìn)行控制對(duì)很多人來說覺得很難處理,并且無所適從,一個(gè)簡(jiǎn)單的方法,找到include/global.inc.php這個(gè)文件.然后找到:
以下為引用的內(nèi)容: function catpos($catid, $urlrule = '') { global $CATEGORY; if(!isset($CATEGORY[$catid])) return ''; $pos = ''; $arrparentid = array_filter(explode(',', $CATEGORY[$catid]['arrparentid'].','.$catid)); foreach($arrparentid as $catid) { if($urlrule) eval("$url = "$urlrule";"); else $url = $CATEGORY[$catid]['url']; $pos .= '<a href="'.$url.'">'.$CATEGORY[$catid]['catname'].'</a>'; } return $pos; } |
修改為:
以下為引用的內(nèi)容: function catpos($catid, $urlrule = '') { global $CATEGORY; if(!isset($CATEGORY[$catid])) return ''; $pos = ''; $arrparentid = array_filter(explode(',', $CATEGORY[$catid]['arrparentid'].','.$catid)); foreach($arrparentid as $catid) { if($urlrule) eval("$url = "$urlrule";"); else $url = $CATEGORY[$catid]['url']; $pos .= '>><a href="'.$url.'">'.$CATEGORY[$catid]['catname'].'</a>'; } return $pos; } |
若想插入圖片或者其他符號(hào)則將>>改為<img src="你的圖片地址" />即可。