http://www.smilehome.net.cn/
这是内容页刚打开时候的,所以的右侧导航分类都是展开的
但是一旦鼠标指向任何一个导航分类,其他的就收起来了,只留下当前的
以下是代码,请高手指点- <SCRIPT type=text/javascript>
- function setTab(num){
- for(i=0;i<36;i++){
- var menu=document.getElementById("b4_Tab"+i);
- var con=document.getElementById("NO_List"+i);
- menu.className=i==num?"NO3_hover":"";
- con.style.display=i==num?"block":"none";
- }
- }
- function wh_tab(num){
- for(i=1;i<99;i++){
- var menu=document.getElementById("menu_tab"+i);
- var con=document.getElementById("tuijian_div"+i);
- menu.className=i==num?"shop_hover":"";
- con.style.display=i==num?"block":"none";
- }
- }
- </SCRIPT>
- <div id=R_NO3>
- <div id=R_N03_T>
- <H2>情感天地</H2>
- <UL>
- <LI class=NO3_hover id=b4_Tab0 onmouseover=setTab(0)><A href="{S_URL}/?action-category-catid-11" target=_blank>感动</A>
- </LI>
- <LI id=b4_Tab1 onmouseover=setTab(1)><A href="{S_URL}/?action-category-catid-12" target=_blank>感人</A> </LI>
- <LI id=b4_Tab2 onmouseover=setTab(2)><A href="{S_URL}/?action-category-catid-33" target=_blank>友情</A> </LI>
- <LI id=b4_Tab3 onmouseover=setTab(3)><A href="{S_URL}/?action-category-catid-32" target=_blank>爱情</A> </LI>
- <LI id=b4_Tab4 onmouseover=setTab(4)><A href="{S_URL}/?action-category-catid-34" target=_blank>亲情</A> </LI>
- <LI id=b4_Tab5 onmouseover=setTab(5)><A href="{S_URL}/?action-category-catid-35" target=_blank>杂文</A> </LI>
- </UL>
- </div>
- <div class=NO_List id=NO_List0><OL>
- <!--{block name="spacenews" parameter="catid/11/haveattach/2/order/i.viewnum
- DESC/limit/0,3/cachetime/900/subjectlen/16/cachename/view_new_gandong/tpl/data"}-->
- <!--{loop $_SBLOCK['view_new_gandong'] $value}-->
- <li><a href="$value[url]" target="_blank"><img src="$value[a_thumbpath]" alt="$value[subjectall]" /></a><BR>
- <a href="$value[url]" title="$value[subjectall]" target="_blank">$value[subject] </a>
- </li>
- <!--{/loop}-->
- </OL>
- <BR clear=all><UL>
- <!--{block name="spacenews" parameter="catid/11/order/i.dateline
- DESC/limit/0,18/cachetime/900/subjectlen/20/cachename/view_gandong/tpl/data"}-->
- <!--{loop $_SBLOCK['view_gandong'] $value}-->
- <li><SPAN><IMG src="{S_URL}/templates/$_SCONFIG[template]/images/list01.jpg"><a href="$value[url]" title="$value
- [subjectall]"> $value[subject]</a></SPAN></li>
- <!--{/loop}-->
- </UL>
- <BR clear=all>
- </div>
- <div class=NO_List id=NO_List1 style="DISPLAY: none"><OL>
- <!--{block name="spacenews" parameter="catid/12/haveattach/2/order/i.dateline
- DESC/limit/0,3/cachetime/900/subjectlen/16/cachename/view_new_ganren/tpl/data"}-->
- <!--{loop $_SBLOCK['view_new_ganren'] $value}-->
- <li><a href="$value[url]" target="_blank"><img src="$value[a_thumbpath]" alt="$value[subjectall]" /></a><BR>
- <a href="$value[url]" title="$value[subjectall]" target="_blank">$value[subject] </a>
- </li>
- <!--{/loop}-->
- </OL>
- <BR clear=all><UL>
- <!--{block name="spacenews" parameter="catid/12/order/i.dateline
- DESC/limit/0,18/cachetime/900/subjectlen/20/cachename/view_ganren/tpl/data"}-->
- <!--{loop $_SBLOCK['view_ganren'] $value}-->
- <li><SPAN><IMG src="{S_URL}/templates/$_SCONFIG[template]/images/list01.jpg"><a href="$value[url]" title="$value
- [subjectall]"> $value[subject] </a></SPAN></li>
- <!--{/loop}-->
- </UL>
- <BR clear=all>
- </div>
- <div class=NO_List id=NO_List2 style="DISPLAY: none"><OL>
- <!--{block name="spacenews" parameter="catid/33/haveattach/2/order/i.dateline
- DESC/limit/0,3/cachetime/900/subjectlen/16/cachename/view_new_youqing/tpl/data"}-->
- <!--{loop $_SBLOCK['view_new_youqing'] $value}-->
- <li><a href="$value[url]" target="_blank"><img src="$value[a_thumbpath]" alt="$value[subjectall]" /></a><BR>
- <a href="$value[url]" title="$value[subjectall]" target="_blank">$value[subject] </a>
- </li>
- <!--{/loop}-->
- </OL>
- <BR clear=all><UL>
- <!--{block name="spacenews" parameter="catid/33/order/i.dateline
- DESC/limit/0,18/cachetime/900/subjectlen/20/cachename/view_youqing/tpl/data"}-->
- <!--{loop $_SBLOCK['view_youqing'] $value}-->
- <li><SPAN><IMG src="{S_URL}/templates/$_SCONFIG[template]/images/list01.jpg"><a href="$value[url]" title="$value
- [subjectall]"> $value[subject] </a></SPAN></li>
- <!--{/loop}-->
- </UL>
- <BR clear=all>
- </div>
- <div class=NO_List id=NO_List3 style="DISPLAY: none"><OL>
- <!--{block name="spacenews" parameter="catid/32/haveattach/2/order/i.viewnum
- DESC/limit/0,3/cachetime/900/subjectlen/16/cachename/sss_1/tpl/data"}-->
- <!--{loop $_SBLOCK['sss_1'] $value}-->
- <li><a href="$value[url]" target="_blank"><img src="$value[a_thumbpath]" alt="$value[subjectall]" /></a><BR>
- <a href="$value[url]" title="$value[subjectall]" target="_blank">$value[subject] </a>
- </li>
- <!--{/loop}-->
- </OL>
- <BR clear=all><UL>
- <!--{block name="spacenews" parameter="catid/32/order/i.dateline
- DESC/limit/0,18/cachetime/900/subjectlen/20/cachename/sss_2/tpl/data"}-->
- <!--{loop $_SBLOCK['sss_2'] $value}-->
- <li><SPAN><IMG src="{S_URL}/templates/$_SCONFIG[template]/images/list01.jpg"><a href="$value[url]" title="$value
- [subjectall]"> $value[subject] </a></SPAN></li>
- <!--{/loop}-->
- </UL>
- <BR clear=all>
- </div>
- <div class=NO_List id=NO_List4 style="DISPLAY: none"><OL>
- <!--{block name="spacenews" parameter="catid/34/digest/1/haveattach/2/order/i.viewnum
- DESC/limit/0,3/cachetime/900/subjectlen/16/cachename/lx_1/tpl/data"}-->
- <!--{loop $_SBLOCK['lx_1'] $value}-->
- <li><a href="$value[url]" target="_blank"><img src="$value[a_thumbpath]" alt="$value[subjectall]" /></a><BR>
- <a href="$value[url]" title="$value[subjectall]" target="_blank">$value[subject] </a>
- </li>
- <!--{/loop}-->
- </OL>
- <BR clear=all><UL>
- <!--{block name="spacenews" parameter="catid/34/order/i.dateline
- DESC/limit/0,18/cachetime/900/subjectlen/20/cachename/lx_2/tpl/data"}-->
- <!--{loop $_SBLOCK['lx_2'] $value}-->
- <li><SPAN><IMG src="{S_URL}/templates/$_SCONFIG[template]/images/list01.jpg"><a href="$value[url]" title="$value
- [subjectall]"> $value[subject] </a></SPAN></li>
- <!--{/loop}-->
- </UL>
- <BR clear=all>
- </div>
- <div class=NO_List id=NO_List5 style="DISPLAY: none"><OL>
- <!--{block name="spacenews" parameter="catid/35/digest/1/haveattach/2/order/i.dateline
- DESC/limit/0,3/cachetime/900/subjectlen/16/cachename/view_new_zawen/tpl/data"}-->
- <!--{loop $_SBLOCK['view_new_zawen'] $value}-->
- <li><a href="$value[url]" target="_blank"><img src="$value[a_thumbpath]" alt="$value[subjectall]" /></a><BR>
- <a href="$value[url]" title="$value[subjectall]" target="_blank">$value[subject] </a>
- </li>
- <!--{/loop}-->
- </OL>
- <BR clear=all><UL>
- <!--{block name="spacenews" parameter="catid/35/order/i.dateline
- DESC/limit/0,18/cachetime/900/subjectlen/20/cachename/view_zawen/tpl/data"}-->
- <!--{loop $_SBLOCK['view_zawen'] $value}-->
- <li><SPAN><IMG src="{S_URL}/templates/$_SCONFIG[template]/images/list01.jpg"><a href="$value[url]" title="$value
- [subjectall]"> $value[subject] </a></SPAN></li>
- <!--{/loop}-->
- </UL>
- <BR clear=all>
- </div>
复制代码 |