原帖由 aoll 于 2007-4-29 23:24 发表
哦,明白.
但我是想在34频道显示四条(也就是在模板中最新商品那处显示),38频道显示四条(那就是热门商品那显示),这样可以的吗?
按照下面的试试看
<div id="goods" class="tabblock" style="height: 400px; overflow: hidden;">
<a href="#action/goods#" class="more">更多资讯</a>
<h3 id="goodstabs">
<a id="newgoodstab" onmouseover="setTab('goods','newgoods')" class="tab curtab">图看遂溪</a>
<a id="hotgoodstab" onmouseover="setTab('goods','hotgoods')" class="tab">遂溪旅游</a>
</h3>
<div id="newgoods" class="tabcontent">
<!--{block name="spacenews" parameter="catid/34/haveattach/1/showattach/1/order/i.dateline DESC/limit/0,4/subjectlen/24/subjectdot/1/messagelen/60/messagedot/1/cachetime/13800/showdetail/1/cachename/newnews/tpl/data"}-->
<ul class="thumbmsglist">
<!--{loop $_SBLOCK['newnews'] $value}-->
<li style="padding: 5px;">
<p class="thumb"><a href="$value[url]"><img src="$value[a_thumbpath]" alt="$value[subjectall]" title="$value[subjectall]" /></a></p>
<div style="width: 190px;">
<h6><a href="$value[url]">$value[subject]</a></h6>
<!--{if !empty($value[message])}--><p>$value[message]</p><!--{/if}-->
</div>
</li>
<!--{/loop}-->
</ul>
</div>
<div id="hotgoods" class="tabcontent" style="display: none;">
<!--{block name="spacenews" parameter="catid/38/haveattach/1/showattach/1/order/i.dateline DESC/limit/0,4/subjectlen/24/subjectdot/1/messagelen/60/messagedot/1/cachetime/13800/showdetail/1/cachename/newnews/tpl/data"}-->
<ul class="thumbmsglist">
<!--{loop $_SBLOCK['newnews'] $value}-->
<li style="padding: 5px;">
<p class="thumb"><a href="$value[url]"><img src="$value[a_thumbpath]" alt="$value[subjectall]" title="$value[subjectall]" /></a></p>
<div style="width: 190px;">
<h6><a href="$value[url]">$value[subject]</a></h6>
<!--{if !empty($value[message])}--><p>$value[message]</p><!--{/if}-->
</div>
</li>
<!--{/loop}-->
</ul>
</div>
</div>
[ 本帖最后由 jsaren 于 2007-4-29 23:46 编辑 ] |