打开 news_index.html.php 举例 找到下面的代码,你看看代码就明白怎么添加了,<h3></h3>里定义连接名称及ID和JS等,后面部分添加对于的模块。- <div class="mainarea">
- <div id="hotarticle" class="block" style="height: 240px; overflow: hidden;">
- <h3 id="hotarticletabs" class="tabs">
- <a id="weektab" href="javascript:setTab('hotarticle','week');" class="tab curtab">周点击榜</a>
- <a id="monthtab" href="javascript:setTab('hotarticle','month');" class="tab">月点击榜</a>
- <a id="alltab" href="javascript:setTab('hotarticle','all');" class="tab">总点击榜</a>
- </h3>
- <!--站内热门资讯列表(一周)-->
- <!--{block name="spacenews" parameter="dateline/604800/order/i.viewnum DESC/limit/0,18/cachetime/85400/subjectlen/40/subjectdot/1/cachename/hotnews1/tpl/data"}-->
- <div id="week" class="tabcontent">
- <ul class="list2col" style="height: 190px;">
- <!--{loop $_SBLOCK['hotnews1'] $value}-->
- <li><cite>#date("m-d", $value["dateline"])# </cite><a href="$value[url]">$value[subject]</a> <span class="smalltxt">($value[viewnum])</span></li>
- <!--{/loop}-->
- </ul>
- </div>
- <!--站内热门资讯列表(一月)-->
- <!--{block name="spacenews" parameter="dateline/2592000/order/i.viewnum DESC/limit/0,18/cachetime/97200/subjectlen/40/subjectdot/1/cachename/hotnews2/tpl/data"}-->
- <div id="month" class="tabcontent" style="display: none;">
- <ul class="list2col" style="height: 190px;">
- <!--{loop $_SBLOCK['hotnews2'] $value}-->
- <li><cite>#date("m-d", $value["dateline"])# </cite><a href="$value[url]">$value[subject]</a> <span class="smalltxt">($value[viewnum])</span></li>
- <!--{/loop}-->
- </ul>
- </div>
- <!--站内热门资讯列表(全部)-->
- <!--{block name="spacenews" parameter="order/i.viewnum DESC/limit/0,18/cachetime/99400/subjectlen/40/subjectdot/1/cachename/hotnews3/tpl/data"}-->
- <div id="all" class="tabcontent" style="display: none;">
- <ul class="list2col" style="height: 190px;">
- <!--{loop $_SBLOCK['hotnews3'] $value}-->
- <li><cite>#date("m-d", $value["dateline"])# </cite><a href="$value[url]">$value[subject]</a> <span class="smalltxt">($value[viewnum])</span></li>
- <!--{/loop}-->
- </ul>
- </div>
- </div>
- </div>
复制代码 |