18038435860

JTBC_PHP 3.0通用友情链接代码

时间:2018-12-14 来源:东莞网站建设 点击:529

1、CSS文件增加以下代码

.friendlinks{width:1170px;margin:0 auto}
.friendlinks h5{width:66px;line-height:47px;float:left;font-size:13px;text-align:center; }
.friendlinkslide{width:1094px;position:relative;line-height:27px;height:27px;overflow-y:hidden;margin-top:11px;float:left}
.friendlinkslide a{text-align:center;font-size:13px;color:#999;float:left}
.friendlinkslide span{margin:0 10px;color:#999;float:left}
.friendlinkslide .slick-prev{display:none!important}
.friendlinkslide .slick-next{width:16px;height:16px;border:none;cursor:pointer;top:6px;position:absolute;overflow:hidden;text-indent:300%;background:url(../images/png_jt6.png);right:0}
.friendlinkslide .slick-next:hover{background:url(../images/png_jt7.png)}
.friendlinkslide a:hover{color:#0095e2}

2、首页调用代码:

<div class="friendlinks clearfix">
<h5>友情链接 : </h5>
<div class="friendlinkslide">
<b class="slick-next"></b>
{$=transfer('genre=universal/link;tpl=link_li;type=first;group=1;limit=20;')}
</div>
</div>

3、调用模板增加节点link_li

<div class="clearfix h">
{@}<a href="{$url}" target="_blank" title="{$topic}">{$topic}&nbsp;&nbsp;</a>{@}
</div>