Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[疑难] 内容页右侧导航紧急求助

[复制链接]
君子笑笑 发表于 2010-1-20 16:43:00 | 显示全部楼层 |阅读模式
http://www.smilehome.net.cn/

这是内容页刚打开时候的,所以的右侧导航分类都是展开的


但是一旦鼠标指向任何一个导航分类,其他的就收起来了,只留下当前的

以下是代码,请高手指点
  1. <SCRIPT type=text/javascript>
  2.     function setTab(num){
  3.         for(i=0;i<36;i++){
  4.         var menu=document.getElementById("b4_Tab"+i);
  5.         var con=document.getElementById("NO_List"+i);
  6.         menu.className=i==num?"NO3_hover":"";
  7.         con.style.display=i==num?"block":"none";
  8. }
  9. }
  10. function wh_tab(num){
  11.         for(i=1;i<99;i++){
  12.         var menu=document.getElementById("menu_tab"+i);
  13.         var con=document.getElementById("tuijian_div"+i);
  14.         menu.className=i==num?"shop_hover":"";
  15.         con.style.display=i==num?"block":"none";
  16. }
  17. }
  18. </SCRIPT>
  19. <div id=R_NO3>
  20. <div id=R_N03_T>
  21. <H2>情感天地</H2>
  22. <UL>
  23.   <LI class=NO3_hover id=b4_Tab0 onmouseover=setTab(0)><A  href="{S_URL}/?action-category-catid-11" target=_blank>感动</A>

  24. </LI>
  25.   <LI id=b4_Tab1 onmouseover=setTab(1)><A href="{S_URL}/?action-category-catid-12"    target=_blank>感人</A> </LI>
  26.   <LI id=b4_Tab2 onmouseover=setTab(2)><A href="{S_URL}/?action-category-catid-33"    target=_blank>友情</A> </LI>
  27.   <LI id=b4_Tab3 onmouseover=setTab(3)><A href="{S_URL}/?action-category-catid-32"    target=_blank>爱情</A> </LI>
  28.   <LI id=b4_Tab4 onmouseover=setTab(4)><A href="{S_URL}/?action-category-catid-34"    target=_blank>亲情</A> </LI>
  29.   <LI id=b4_Tab5 onmouseover=setTab(5)><A href="{S_URL}/?action-category-catid-35"    target=_blank>杂文</A> </LI>
  30. </UL>
  31. </div>
  32. <div class=NO_List id=NO_List0><OL>
  33. <!--{block name="spacenews" parameter="catid/11/haveattach/2/order/i.viewnum

  34. DESC/limit/0,3/cachetime/900/subjectlen/16/cachename/view_new_gandong/tpl/data"}-->
  35. <!--{loop $_SBLOCK['view_new_gandong'] $value}-->
  36. <li><a href="$value[url]" target="_blank"><img src="$value[a_thumbpath]" alt="$value[subjectall]" /></a><BR>
  37. <a href="$value[url]" title="$value[subjectall]" target="_blank">$value[subject]&nbsp;</a>
  38. </li>
  39. <!--{/loop}-->
  40. </OL>
  41. <BR clear=all><UL>
  42. <!--{block name="spacenews" parameter="catid/11/order/i.dateline

  43. DESC/limit/0,18/cachetime/900/subjectlen/20/cachename/view_gandong/tpl/data"}-->
  44. <!--{loop $_SBLOCK['view_gandong'] $value}-->
  45. <li><SPAN><IMG src="{S_URL}/templates/$_SCONFIG[template]/images/list01.jpg"><a href="$value[url]" title="$value

  46. [subjectall]"> $value[subject]</a></SPAN></li>
  47. <!--{/loop}-->
  48. </UL>
  49. <BR clear=all>
  50. </div>

  51. <div class=NO_List id=NO_List1 style="DISPLAY: none"><OL>
  52. <!--{block name="spacenews" parameter="catid/12/haveattach/2/order/i.dateline

  53. DESC/limit/0,3/cachetime/900/subjectlen/16/cachename/view_new_ganren/tpl/data"}-->
  54. <!--{loop $_SBLOCK['view_new_ganren'] $value}-->
  55. <li><a href="$value[url]" target="_blank"><img src="$value[a_thumbpath]" alt="$value[subjectall]" /></a><BR>
  56. <a href="$value[url]" title="$value[subjectall]" target="_blank">$value[subject]&nbsp;</a>
  57. </li>
  58. <!--{/loop}-->
  59. </OL>
  60. <BR clear=all><UL>
  61. <!--{block name="spacenews" parameter="catid/12/order/i.dateline

  62. DESC/limit/0,18/cachetime/900/subjectlen/20/cachename/view_ganren/tpl/data"}-->
  63. <!--{loop $_SBLOCK['view_ganren'] $value}-->
  64. <li><SPAN><IMG src="{S_URL}/templates/$_SCONFIG[template]/images/list01.jpg"><a href="$value[url]" title="$value

  65. [subjectall]"> $value[subject]&nbsp;</a></SPAN></li>
  66. <!--{/loop}-->
  67. </UL>
  68. <BR clear=all>
  69. </div>


  70. <div class=NO_List id=NO_List2 style="DISPLAY: none"><OL>
  71. <!--{block name="spacenews" parameter="catid/33/haveattach/2/order/i.dateline

  72. DESC/limit/0,3/cachetime/900/subjectlen/16/cachename/view_new_youqing/tpl/data"}-->
  73. <!--{loop $_SBLOCK['view_new_youqing'] $value}-->
  74. <li><a href="$value[url]" target="_blank"><img src="$value[a_thumbpath]" alt="$value[subjectall]" /></a><BR>
  75. <a href="$value[url]" title="$value[subjectall]" target="_blank">$value[subject]&nbsp;</a>
  76. </li>
  77. <!--{/loop}-->
  78. </OL>
  79. <BR clear=all><UL>
  80. <!--{block name="spacenews" parameter="catid/33/order/i.dateline

  81. DESC/limit/0,18/cachetime/900/subjectlen/20/cachename/view_youqing/tpl/data"}-->
  82. <!--{loop $_SBLOCK['view_youqing'] $value}-->
  83. <li><SPAN><IMG src="{S_URL}/templates/$_SCONFIG[template]/images/list01.jpg"><a href="$value[url]" title="$value

  84. [subjectall]"> $value[subject]&nbsp;</a></SPAN></li>
  85. <!--{/loop}-->
  86. </UL>
  87. <BR clear=all>
  88. </div>

  89. <div class=NO_List id=NO_List3 style="DISPLAY: none"><OL>
  90. <!--{block name="spacenews" parameter="catid/32/haveattach/2/order/i.viewnum

  91. DESC/limit/0,3/cachetime/900/subjectlen/16/cachename/sss_1/tpl/data"}-->
  92. <!--{loop $_SBLOCK['sss_1'] $value}-->
  93. <li><a href="$value[url]" target="_blank"><img src="$value[a_thumbpath]" alt="$value[subjectall]" /></a><BR>
  94. <a href="$value[url]" title="$value[subjectall]" target="_blank">$value[subject]&nbsp;</a>
  95. </li>
  96. <!--{/loop}-->
  97. </OL>
  98. <BR clear=all><UL>
  99. <!--{block name="spacenews" parameter="catid/32/order/i.dateline

  100. DESC/limit/0,18/cachetime/900/subjectlen/20/cachename/sss_2/tpl/data"}-->
  101. <!--{loop $_SBLOCK['sss_2'] $value}-->
  102. <li><SPAN><IMG src="{S_URL}/templates/$_SCONFIG[template]/images/list01.jpg"><a href="$value[url]" title="$value

  103. [subjectall]"> $value[subject]&nbsp;</a></SPAN></li>
  104. <!--{/loop}-->
  105. </UL>
  106. <BR clear=all>
  107. </div>

  108. <div class=NO_List id=NO_List4 style="DISPLAY: none"><OL>
  109. <!--{block name="spacenews" parameter="catid/34/digest/1/haveattach/2/order/i.viewnum

  110. DESC/limit/0,3/cachetime/900/subjectlen/16/cachename/lx_1/tpl/data"}-->
  111. <!--{loop $_SBLOCK['lx_1'] $value}-->
  112. <li><a href="$value[url]" target="_blank"><img src="$value[a_thumbpath]" alt="$value[subjectall]" /></a><BR>
  113. <a href="$value[url]" title="$value[subjectall]" target="_blank">$value[subject]&nbsp;</a>
  114. </li>
  115. <!--{/loop}-->
  116. </OL>
  117. <BR clear=all><UL>
  118. <!--{block name="spacenews" parameter="catid/34/order/i.dateline

  119. DESC/limit/0,18/cachetime/900/subjectlen/20/cachename/lx_2/tpl/data"}-->
  120. <!--{loop $_SBLOCK['lx_2'] $value}-->
  121. <li><SPAN><IMG src="{S_URL}/templates/$_SCONFIG[template]/images/list01.jpg"><a href="$value[url]" title="$value

  122. [subjectall]"> $value[subject]&nbsp;</a></SPAN></li>
  123. <!--{/loop}-->
  124. </UL>
  125. <BR clear=all>
  126. </div>

  127. <div class=NO_List id=NO_List5 style="DISPLAY: none"><OL>
  128. <!--{block name="spacenews" parameter="catid/35/digest/1/haveattach/2/order/i.dateline

  129. DESC/limit/0,3/cachetime/900/subjectlen/16/cachename/view_new_zawen/tpl/data"}-->
  130. <!--{loop $_SBLOCK['view_new_zawen'] $value}-->
  131. <li><a href="$value[url]" target="_blank"><img src="$value[a_thumbpath]" alt="$value[subjectall]" /></a><BR>
  132. <a href="$value[url]" title="$value[subjectall]" target="_blank">$value[subject]&nbsp;</a>
  133. </li>
  134. <!--{/loop}-->
  135. </OL>
  136. <BR clear=all><UL>
  137. <!--{block name="spacenews" parameter="catid/35/order/i.dateline

  138. DESC/limit/0,18/cachetime/900/subjectlen/20/cachename/view_zawen/tpl/data"}-->
  139. <!--{loop $_SBLOCK['view_zawen'] $value}-->
  140. <li><SPAN><IMG src="{S_URL}/templates/$_SCONFIG[template]/images/list01.jpg"><a href="$value[url]" title="$value

  141. [subjectall]"> $value[subject]&nbsp;</a></SPAN></li>
  142. <!--{/loop}-->
  143. </UL>
  144. <BR clear=all>
  145. </div>
复制代码
cometj 发表于 2010-1-20 16:54:33 | 显示全部楼层
呵呵,改的不错啊,!
回复

使用道具 举报

 楼主| 君子笑笑 发表于 2010-1-20 17:06:44 | 显示全部楼层
回复 2# cometj


    客气了,改人家的,也不是自己弄出来的,没那时间
回复

使用道具 举报

 楼主| 君子笑笑 发表于 2010-1-21 16:09:50 | 显示全部楼层
求.....................................................................................................................助
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-16 20:31 , Processed in 0.031603 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表