本帖最后由 syan218 于 2010-7-10 16:47 编辑
代码如下- <DIV class=wapperMain><!-- 今日头条 -->
- <DIV class=topic>
- <DIV class=hd>今日头条</DIV>
- <DIV class=bd>
- <!--{block name="spacenews" parameter="top/1/showdetail/1/order/i.dateline DESC/limit/0,1/showcategory/1/subjectlen/36/subjectdot/0/cachetime/68600/cachename/hotnews/tpl/data"}-->
- <!--{if !empty($_SBLOCK['hotnews'])}-->
- <!--{loop $_SBLOCK['hotnews'] $value}-->
- <H1><A href="$value[url]"
- target="_blank">$value[subject]</A></H1>
- <!--{/loop}-->
- <!--{/if}-->
- <UL>
- <!--{block name="spacenews" parameter="top/2,3/showdetail/1/order/i.dateline DESC/limit/0,5/showcategory/1/subjectlen/44/subjectdot/0/cachetime/68600/cachename/hotnews/tpl/data"}-->
- <!--{if !empty($_SBLOCK['hotnews'])}-->
- <!--{loop $_SBLOCK['hotnews'] $value}-->
- <LI><A href="$value[url]">$value[subject]</A><EM>$value[catname][name]</EM></LI>
- <!--{/loop}-->
- <!--{/if}-->
- </UL>
- <UL>
- <!--{block name="spacenews" parameter="digest/1,2,3/showdetail/1/order/i.dateline DESC/limit/0,5/showcategory/1/subjectlen/44/subjectdot/0/cachetime/68600/cachename/hotnews/tpl/data"}-->
- <!--{if !empty($_SBLOCK['hotnews'])}-->
- <!--{loop $_SBLOCK['hotnews'] $value}-->
- <LI><A href="$value[url]">$value[subject]</A><EM>$value[catname][name]</EM></LI>
- <!--{/loop}-->
- <!--{/if}-->
- </UL>
- <UL>
- <!--{block name="spacenews" parameter="showdetail/1/order/i.dateline DESC/limit/0,5/showcategory/1/subjectlen/44/subjectdot/0/cachetime/68600/cachename/hotnews/tpl/data"}-->
- <!--{if !empty($_SBLOCK['hotnews'])}-->
- <!--{loop $_SBLOCK['hotnews'] $value}-->
- <LI><A href="$value[url]">$value[subject]</A><EM>$value[catname][name]</EM></LI>
- <!--{/loop}-->
- <!--{/if}-->
- </UL>
- </DIV>
- </DIV></DIV></DIV>
复制代码 已解决在 7楼 size] |