这是资讯首页里的一段代码,请看红色部分!一看就明白拉,其他的都是一样的原理,无聊中。。做了这个教程,希望对大家有点帮助,
<div class="hackbox"></div>
<!--layer1-->
<DIV class="lw yspace"><!--111111 精华资讯 (网友爆料,都市生活,本地焦点,天天读报)--><!--层1-->
<DIV class=block id=lift>
<DIV class=title>
<UL>
<LI class=current id=DivShopMsg_Food_All
onmouseover="getPageDiv('DivShopMsg_Food','_All')"><SPAN><A
href=""
target=_blank>1</A></SPAN> </LI>
<LI id=DivShopMsg_Food_Sweet
onmouseover="getPageDiv('DivShopMsg_Food','_Sweet')"><SPAN><A
href=""
target=_blank>2</A></SPAN> </LI>
<LI id=DivShopMsg_Food_CaiPu
onmouseover="getPageDiv('DivShopMsg_Food','_CaiPu')"><SPAN><A
href=""
target=_blank>3</A></SPAN> </LI>
<LI id=DivShopMsg_Food_Discount
onmouseover="getPageDiv('DivShopMsg_Food','_Discount')"><SPAN><A
href=""
target=_blank>4</A></SPAN> </LI></UL>
注释:这里的红色1,2,3,4是资讯首页面里看到的导航条
<DIV class=hackbox></DIV></DIV>
<!--**********************************************************************************-->
<DIV class=content id=DivShopMsg_Food_All_Content style="DISPLAY: none">1</DIV>
<DIV class=content id=DivShopMsg_Food_Sweet_Content style="DISPLAY: none">
2</DIV>
注释:这里的红色2是放导航条2下面显示的内容
<DIV class=content id=DivShopMsg_Food_CaiPu_Content style="DISPLAY: none">3</DIV>
注释:这里的红色3是放导航条3下面显示的内容
<DIV class=content id=DivShopMsg_Food_Discount_Content style="DISPLAY: none">4</DIV>
注释:这里的红色4是放导航条4下面显示的内容
<DIV class=content id=DivShopMsg_Food_ShowPanel style="PADDING-RIGHT: 0px; HEIGHT: 150px">
<!--{block name="spacenews" parameter="haveattach/1/showattach/1/order/i.viewnum DESC/limit/0,2/cachetime/900/subjectlen/26/subjectdot/1/showdetail/1/messagelen/60/messagedot/1/showcategory/1/cachename/news/tpl/data"}--><!--最新图片资讯列表-->
<!--{loop $_SBLOCK['news'] $value}-->
<DIV class=imgMessage>
<DIV class=imgMessage1><a href="$value[url]" target="_blank"><img src="$value[a_thumbpath]" alt="$value[subjectall]" width="62" height="62" border="0" /></a>
<DIV class=l>
<H2><a href="$value[url]" target="_blank" title="$value[subjectall]">$value[subject]</a> </H2>
<P>$value[message]</P></DIV>
<DIV class=hackbox></DIV></DIV></DIV>
<!--{/loop}-->
<!--{block name="spacenews" parameter="order/i.viewnum DESC/limit/0,6/cachetime/900/subjectlen/30/subjectdot/1/cachename/news/tpl/data"}--><!--最新资讯列表-->
<UL class=listMessage>
<!--{loop $_SBLOCK['news'] $value}-->
<LI><a href="$value[url]" target="_blank" title="$value[subjectall]">$value[subject]</a> </LI>
<!--{/loop}-->
</UL>
<DIV class=hackbox></DIV> </DIV></DIV>
注释:这里的红色部分是导航条1下面显示的内容
[ 本帖最后由 linshao2007 于 2007-7-7 14:05 编辑 ] |