首页 > 网站建设 > 织梦在网站首页实现下拉式友情链接
2017
02-04

织梦在网站首页实现下拉式友情链接

  在首页中的友情链接太多了,想要用那种下拉式的友情链接来增加首页中友情链接的数量。


  这样在网站的首页是比较节省空间,想要实现这样的效果也很简单,来看下面的步骤:


  编辑打开\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>


  然后更新首页就行了。



本文》有 0 条评论

留下一个回复