網(LieHuo.Net)教程 導航條的分劃符采用CSS進行控制對很多人來說覺得很難處理,并且無所適從,一個簡單的方法,找到include/global.inc.php這個文件.然后找到:
以下為引用的內容: 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; } |
修改為:
以下為引用的內容: 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; } |
若想插入圖片或者其他符號則將>>改為<img src="你的圖片地址" />即可。
下一篇 百度關鍵詞優化之空間選擇一