在首页中的友情链接太多了,想要用那种下拉式的友情链接来增加首页中友情链接的数量。
这样在网站的首页是比较节省空间,想要实现这样的效果也很简单,来看下面的步骤:
编辑打开\include\taglib\flink.lib.php
查找 else if($type==’image’)
在其上面加入
else if($type=='option')
{
$link = "<option value='".$dbrow->url."'>".cn_substr($dbrow->webname,$titlelen)."</option>";
}
在首页index.htm模板里面插入下面代码
<select> <option selected="selected">--相关链接地址--</option> {dede:flink row='24' type='option'/}</select>
然后更新首页就行了。
- 本文固定链接: http://www.seor.com.cn/post/95.html
- 转载请注明: wuyou387 于 站长服务 发表
《本文》有 0 条评论