效果图
加载更多按钮
一,模板上要引入jq文件<script language="JavaScript" type="text/javascript" src="{dede:global.cfg_templets_skin/}/js/jQuery.js"></script>
二,模板<div class="xl12 xm8 xb8 over-hidden"> <!-- 切换标签 --> <style type="text/css"> .slideTxtBox{ width:100%; text-align:left; } .slideTxtBox .hd{ height:38px; line-height:27px; position:relative; overflow:hidden } .slideTxtBox .hd ul{left:10px; float:left; position:absolute; top:3px; height:39px;width:120%;} .slideTxtBox .hd ul li{height:40px; float:left;color:#fff;padding:0px 7px 0px 6px; cursor:pointer; } .slideTxtBox .hd ul li.on{background:url({dede:global.cfg_templets_skin/}/images/bg5.png) repeat-x;color:red } .slideTxtBox .bd ul{ zoom:1;padding-bottom:50px;display:none;position:relative;} .slideTxtBox .bd li{ height:24px; line-height:24px; } #dede_qrcode_frame{ display:none;z-index:5;position:absolute;top:-117px;left:-40px ;}</style> <div id="slideTxtBox"class="slideTxtBox l-padding00"style="overflow:visible !important;"> <div class="hd bg-main"> <ul id="tab"class="border-top border-main border-big"> <li class="on">全部</li> <li>商会</li></ul> </div><br/> <div class="bd"id="slideTxtBox-bd"> <ul id="all" class="show"> {dede:arclist row='9' titlelen='100'titlelen='100' orderby='id' } <div class="bg-fff margin-big-bottom l-margin-bottom0 l-margin-top12 list2 width-100 ib pr"id="list"><div class="xl4 padding20 l-padding00"><span class="pr ib "><a target="_blank" class="width-100" href="[field:arcurl/]"> <img src="[field:litpic/]" width="100%"class="width-100" alt="[field:title/]"> </a> <!-- 微博微信 --> <span class="left0 bottom0 height40 bgt30 width-100 text-fff text-small"id="shares" style="display:none ;"> <a class="xl-textshare cursor votenums" href="https://v.t.sina.com.cn/share/share.php?title=[field:title/] [field:global.cfg_basehost/][field:arcurl/]"></a> <span class="line-share"></span> <span class="wx-textshare pr"> <a class="z-index5 top0 left0" id='__dedeqrcode_1'></a> <script type="text/javascript"> var __dedeqrcode_id=1; var __dedeqrcode_aid=[field:id/]; var __dedeqrcode_type='arc'; var __dedeqrcode_dir='[field:global.cfg_basehost/]/plus'; </script> <script language="javascript" type="text/javascript" src="/plus/img/qrcode.js"></script></a> </span>