nav_top.js
上传用户:hjieqiu
上传日期:2013-05-11
资源大小:16494k
文件大小:14k
源码类别:

企业管理

开发平台:

C#

  1. //*************导航条***************
  2. function ShowMainNavBar(n,subn){
  3. with(document){
  4. //主导航条开始
  5. write("<table width=770 border=0 align=center cellpadding=5 cellspacing=0 background=http://www.rising.com.cn/img0310/bg_top.jpg class=topfade><tr><td width=215 height=46 > <a href=http://www.rising.com.cn><img src=http://www.rising.com.cn/img0310/Rising_Logo1.gif alt=瑞星反病毒资讯网 width=159 height=34 border=0></a></td><td width=555 align=right valign=top > <a href=http://www.rising.com.cn class=site>·中国</a> <a href=http://www.rising-hk.com/tradition/default.htm class=site>·香港</a> <a href=http://www.rising-global.com/ class=site>·ENGLISH</a>&nbsp;&nbsp;</td></tr></table>");
  6. write("<table width=770 border=0 align=center cellpadding=2 cellspacing=0><tr><td width=180 bgcolor=#125FA7>&nbsp;</td><td width=590 bgcolor=#125FA7><font color=#FFFFFF><a href=http://www.rising.com.cn class=nav>首页</a>  <a href=http://it.rising.com.cn/newSite/Channels/info/index.htm class=nav>业界资讯</a>·<a href=http://it.rising.com.cn/newSite/Channels/anti_virus/index.htm class=nav>病毒与安全</a>·<a href=http://it.rising.com.cn/antivirus/antivirus7.asp class=nav>病毒资料库</a>  <a href=http://it.rising.com.cn/product/default.htm class=nav>产品与方案</a>·<a href=http://it.rising.com.cn/newSite/Channels/service/index.htm class=nav>服务与支持</a>·<a href=http://it.rising.com.cn/service/afterservice/servicenet.asp class=nav>经销商</a>·<a href=http://it.rising.com.cn/product/network/pronetwork.htm class=nav>网络版</a>·<a href=http://it.rising.com.cn/product/safety/prosafety.htm class=nav>防火/防毒墙</a></font></td></tr><tr><td height=1 colspan=2 bgcolor=C6C6C6></td></tr><tr><td bgcolor=#2A6FB0>&nbsp;</td><td bgcolor=#2A6FB0><font color=#FFFFFF><nobr><a href=http://go.rising.com.cn/index.asp class=nav>杀毒软件</a>·<a href=http://fw.rising.com.cn/ class=nav>防火墙</a>·<a href=http://online.rising.com.cn/ class=nav>在线杀毒</a>·<a href=http://www.rising.com.cn/ebusiness/order/OrderStart.asp class=nav>在线订购</a>  <a href=http://sos.rising.com.cn/ class=nav>数据修复</a>·<a href=http://it.rising.com.cn/service/nettrain/train4.asp class=nav>培训认证</a>  <a href=http://online.rising.com.cn/ravonline/RavSoft/Rav.asp class=nav>免费查毒</a>·<a href=http://it.rising.com.cn/service/technology/tool.htm class=nav>专杀工具</a>  <a href=http://sms.rising.com.cn/ class=nav>短信</a>·<a href=http://community.rising.com.cn/ class=nav>社区</a></font></nobr></td></tr><tr><td height=1 colspan=2 bgcolor=C6C6C6></td></tr></table>");
  7. //主导航条结束
  8. //频道导航条开始
  9. write("<table border='0' width='770' cellspacing='0' cellpadding='0' align='center'>");
  10. write("<tr><td width='770' height=20 align=right bgcolor='#417FB9'><font color=white>");
  11. //产品频道导航
  12. if(n==9){
  13. write(subn==1?"<a class=nav href='/product/default.htm'><font color=#FFFF00>":"<a class=nav href='/product/default.htm'>")
  14. write("产品首页")
  15. write(subn==1?"</font></a>":"</a>")
  16. write("&nbsp;|&nbsp;");
  17. write(subn==2?"<a class=nav href='/product/2004/index.htm'><font color=#FFFF00>":"<a class=nav href='/product/2004/index.htm'>")
  18. write("瑞星杀毒软件2004版(含个人防火墙)")
  19. write(subn==2?"</font></a>":"</a>")
  20. write("&nbsp;|&nbsp;");
  21. write(subn==3?"<a class=nav href='/product/priorpro/prior.htm'><font color=#FFFF00>":"<a class=nav href='/product/priorpro/prior.htm'>")
  22. write("单机历史版本")
  23. write(subn==3?"</font></a>":"</a>")
  24. write("&nbsp;|&nbsp;");
  25. write(subn==4?"<a class=nav href='/product/network/pronetwork.htm'><font color=#FFFF00>":"<a class=nav href='/product/network/pronetwork.htm'>")
  26. write("网络版")
  27. write(subn==4?"</font></a>":"</a>")
  28. write("&nbsp;|&nbsp;");
  29. write(subn==5?"<a class=nav href='/product/safety/prosafety.htm'><font color=#FFFF00>":"<a class=nav href='/product/safety/prosafety.htm'>")
  30. write("防火/防毒墙")
  31. write(subn==5?"</font></a>":"</a>")
  32. write("&nbsp;&nbsp;");
  33. }
  34. //服务频道导航
  35. if(n==6){
  36. write(subn==1?"<a class=nav href='http://it.rising.com.cn/newSite/Channels/service/index.htm'><font color=#FFFF00>":"<a class=nav href='http://it.rising.com.cn/newSite/Channels/service/index.htm'>")
  37. write("服务首页")
  38. write(subn==1?"</font></a>":"</a>")
  39. write("&nbsp;|&nbsp;");
  40. write(subn==2?"<a class=nav href='http://it.rising.com.cn/service/upgrade/upgrade.htm'><font color=#FFFF00>":"<a class=nav href='http://it.rising.com.cn/service/upgrade/upgrade.htm'>")
  41. write("版本升级")
  42. write(subn==2?"</font></a>":"</a>")
  43. write("&nbsp;|&nbsp;");
  44. write(subn==3?"<a class=nav href='http://it.rising.com.cn/service/technology/technology.htm'><font color=#FFFF00>":"<a class=nav href='http://it.rising.com.cn/service/technology/technology.htm'>")
  45. write("技术支持")
  46. write(subn==3?"</font></a>":"</a>")
  47. write("&nbsp;|&nbsp;");
  48. write(subn==4?"<a class=nav href='http://sos.rising.com.cn/index.htm'><font color=#FFFF00>":"<a class=nav href='http://sos.rising.com.cn/index.htm'>")
  49. write("数据修复")
  50. write(subn==4?"</font></a>":"</a>")
  51. write("&nbsp;|&nbsp;");
  52. write(subn==5?"<a class=nav href='http://it.rising.com.cn/service/nettrain/train4.asp'><font color=#FFFF00>":"<a class=nav href='http://it.rising.com.cn/service/nettrain/train4.asp'>")
  53. write("培训认证")
  54. write(subn==5?"</font></a>":"</a>")
  55. write("&nbsp;|&nbsp;");
  56. write(subn==6?"<a class=nav href='http://it.rising.com.cn/service/waibao/waibao.htm'><font color=#FFFF00>":"<a class=nav href='http://it.rising.com.cn/service/waibao/waibao.htm'>")
  57. write("外包服务")
  58. write(subn==6?"</font></a>":"</a>")
  59. write("&nbsp;|&nbsp;");
  60. write(subn==7?"<a class=nav href='http://it.rising.com.cn/service/clientclub/intro.htm'><font color=#FFFF00>":"<a class=nav href='http://it.rising.com.cn/service/clientclub/intro.htm'>")
  61. write("客户俱乐部")
  62. write(subn==7?"</font></a>":"</a>")
  63. write("&nbsp;|&nbsp;");
  64. write(subn==8?"<a class=nav href='http://community.rising.com.cn/Forum/ShowForum.asp?FmID=39'><font color=#FFFF00>":"<a class=nav href='http://community.rising.com.cn/Forum/ShowForum.asp?FmID=39'>")
  65. write("在线技术支持")
  66. write(subn==8?"</font></a>":"</a>")
  67. }
  68. if(n==4){
  69. write(subn==1?"<a class=nav href='http://it.rising.com.cn/newSite/Channels/Safety/index.htm'><font color=#FFFF00>":"<a class=nav href='http://it.rising.com.cn/newSite/Channels/Safety/index.htm'>")
  70. write("频道首页")
  71. write(subn==1?"</font></a>":"</a>")
  72. write("&nbsp;|&nbsp;");
  73. write(subn==2?"<a class=nav href='http://it.rising.com.cn/newSite/Channels/Safety/LatestHole/index.htm'><font color=#FFFF00>":"<a class=nav href='http://it.rising.com.cn/newSite/Channels/Safety/LatestHole/index.htm'>")
  74. write("最新漏洞")
  75. write(subn==2?"</font></a>":"</a>")
  76. write("&nbsp;|&nbsp;");
  77. write(subn==3?"<a class=nav href='http://it.rising.com.cn/newSite/Channels/Safety/SysSafety/index.htm'><font color=#FFFF00>":"<a class=nav href='http://it.rising.com.cn/newSite/Channels/Safety/SysSafety/index.htm'>")
  78. write("系统安全")
  79. write(subn==3?"</font></a>":"</a>")
  80. write("&nbsp;|&nbsp;");
  81. write(subn==4?"<a class=nav href='http://it.rising.com.cn/newSite/Channels/Safety/SafeDefend/index.htm'><font color=#FFFF00>":"<a class=nav href='http://it.rising.com.cn/newSite/Channels/Safety/SafeDefend/index.htm'>")
  82. write("安全防范")
  83. write(subn==4?"</font></a>":"</a>")
  84. write("&nbsp;|&nbsp;");
  85. write(subn==5?"<a class=nav href='http://it.rising.com.cn/newSite/Channels/Safety/SafetyResourse/index.htm'><font color=#FFFF00>":"<a class=nav href='http://it.rising.com.cn/newSite/Channels/Safety/SafetyResourse/index.htm'>")
  86. write("安全资源")
  87. write(subn==5?"</font></a>":"</a>")
  88. write("&nbsp;|&nbsp;");
  89. write(subn==7?"<a class=nav target='_blank' href='http://community.rising.com.cn/Forum/ShowForum.asp?FmID=33'><font color=#FFFF00>":"<a class=nav target='_blank' href='http://community.rising.com.cn/Forum/ShowForum.asp?FmID=33'>")
  90. write("安全论坛")
  91. write(subn==7?"</font></a>":"</a>")
  92. }
  93. //资讯频道
  94. if(n==2){
  95. write(subn==1?"<a class=nav href='/newSite/Channels/info/index.htm'><font color=#FFFF00>":"<a class=nav href='/newSite/Channels/info/index.htm'>")
  96. write("频道首页")
  97. write(subn==1?"</font></a>":"</a>")
  98. write("&nbsp;|&nbsp;");
  99. write(subn==2?"<a class=nav href='/newSite/Channels/info/security/index.htm'><font color=#FFFF00>":"<a class=nav href='/newSite/Channels/info/security/index.htm'>")
  100. write("安全动态")
  101. write(subn==2?"</font></a>":"</a>")
  102. write("&nbsp;|&nbsp;");
  103. write(subn==3?"<a class=nav href='/newSite/Channels/info/virus/index.htm'><font color=#FFFF00>":"<a class=nav href='/newSite/Channels/info/virus/index.htm'>")
  104. write("病毒快讯")
  105. write(subn==3?"</font></a>":"</a>")
  106. write("&nbsp;|&nbsp;");
  107. write(subn==6?"<a class=nav href='/newSite/Channels/info/rav_news/index.htm'><font color=#FFFF00>":"<a class=nav href='/newSite/Channels/info/rav_news/index.htm'>")
  108. write("瑞星动态")
  109. write(subn==6?"</font></a>":"</a>")
  110. write("&nbsp;|&nbsp;");
  111. write(subn==4?"<a class=nav href='/newSite/Channels/info/rav_media/index.htm'><font color=#FFFF00>":"<a class=nav href='/newSite/Channels/info/rav_media/index.htm'>")
  112. write("瑞星文摘")
  113. write(subn==4?"</font></a>":"</a>")
  114. write("&nbsp;|&nbsp;");
  115. write(subn==5?"<a class=nav href='/newSite/Channels/info/corp_news/index.htm'><font color=#FFFF00>":"<a class=nav href='/newSite/Channels/info/corp_news/index.htm'>")
  116. write("厂商动态")
  117. write(subn==5?"</font></a>":"</a>")
  118. }
  119. //瑞星之家导航 
  120. if(n==7){
  121. write(subn==8?"<a class=nav href='/corp/rsenglish/rising.htm' target='_blank'><font color=#FFFF00>":"<a class=nav href='/corp/rsenglish/rising.htm' target='_blank'>")
  122. write("About Rising")
  123. write(subn==8?"</font></a>":"</a>")
  124. write(" | ");
  125. write(subn==1?"<a class=nav href='/aboutrising/about.htm'><font color=#FFFF00>":"<a class=nav href='/aboutrising/about.htm'>")
  126. write("公司简介")
  127. write(subn==1?"</font></a>":"</a>")
  128. write(" | ");
  129. write(subn==2?"<a class=nav href='/aboutrising/leadoration.htm'><font color=#FFFF00>":"<a class=nav href='/aboutrising/leadoration.htm'>")
  130. write("领导致辞")
  131. write(subn==2?"</font></a>":"</a>")
  132. write(" | ");
  133. write(subn==3?"<a class=nav href='/aboutrising/group.htm'><font color=#FFFF00>":"<a class=nav href='/aboutrising/group.htm'>")
  134. write("精英团队")
  135. write(subn==3?"</font></a>":"</a>")
  136. write(" | ");
  137. write(subn==4?"<a class=nav href='/aboutrising/culfure.htm'><font color=#FFFF00>":"<a class=nav href='/aboutrising/culture.htm'>")
  138. write("瑞星文化")
  139. write(subn==4?"</font></a>":"</a>")
  140. write(" | ");
  141. write(subn==5?"<a class=nav href='/aboutrising/rising.htm'><font color=#FFFF00>":"<a class=nav href='/aboutrising/rising.htm'>")
  142. write("Rising瑞星")
  143. write(subn==5?"</font></a>":"</a>")
  144. write(" | ");
  145. write(subn==6?"<a class=nav href='/aboutrising/memorabiliajx.htm'><font color=#FFFF00>":"<a class=nav href='/aboutrising/memorabilia.htm'>")
  146. write("公司大事记")
  147. write(subn==6?"</font></a>":"</a>")
  148. write(" | ");
  149. write(subn==7?"<a class=nav href='/aboutrising/joinus.htm'><font color=#FFFF00>":"<a class=nav href='/aboutrising/joinus.htm'>")
  150. write("加盟瑞星")
  151. write(subn==7?"</font></a>":"</a>")
  152. }
  153. //**********病毒频道导航
  154. if(n==3){
  155. write(subn==1?"<a class=nav href='/newSite/Channels/anti_virus/index.htm'><font color=#FFFF00>":"<a class=nav href='/newSite/Channels/anti_virus/index.htm'>")
  156. write("频道首页")
  157. write(subn==1?"</font></a>":"</a>")
  158. write("&nbsp;|&nbsp;");
  159. write(subn==2?"<a class=nav href='/newSite/Channels/anti_virus/Virus_Alert/index.htm'><font color=#FFFF00>":"<a class=nav href='/newSite/Channels/anti_virus/Virus_Alert/index.htm'>")
  160. write("病毒报警")
  161. write(subn==2?"</font></a>":"</a>")
  162. write("&nbsp;|&nbsp;");
  163. write(subn==6?"<a class=nav href='/newSite/Channels/anti_virus/Upgrade_Report/index.htm'><font color=#FFFF00>":"<a class=nav href='/newSite/Channels/anti_virus/Upgrade_Report/index.htm'>")
  164. write("升级报告")
  165. write(subn==6?"</font></a>":"</a>")
  166. write("&nbsp;|&nbsp;");
  167. write(subn==4?"<a class=nav href='http://it.rising.com.cn/antivirus/antivirus7.asp'><font color=#FFFF00>":"<a class=nav href='http://it.rising.com.cn/antivirus/antivirus7.asp'>")
  168. write("病毒资料库")
  169. write(subn==4?"</font></a>":"</a>")
  170. write("&nbsp;|&nbsp;");
  171. write(subn==3?"<a class=nav href='/newSite/Channels/anti_virus/Antivirus_Base/index.htm'><font color=#FFFF00>":"<a class=nav href='/newSite/Channels/anti_virus/Antivirus_Base/index.htm'>")
  172. write("反病毒基地")
  173. write(subn==3?"</font></a>":"</a>")
  174. write("&nbsp;|&nbsp;");
  175. write(subn==5?"<a class=nav href='/newSite/Channels/anti_virus/Antivirus_Faq/index.htm'><font color=#FFFF00>":"<a class=nav href='/newSite/Channels/anti_virus/Antivirus_Faq/index.htm'>")
  176. write("反病毒FAQ")
  177. write(subn==5?"</font></a>":"</a>")
  178. write("&nbsp;|&nbsp;");
  179. write(subn==7?"<a target=_blank class=nav href='http://community.rising.com.cn/Forum/ShowForum.asp?FmID=28'><font color=#FFFF00>":"<a target=_blank class=nav href='http://community.rising.com.cn/Forum/ShowForum.asp?FmID=28'>")
  180. write("反病毒论坛")
  181. write(subn==7?"</font></a>":"</a>")}
  182. //*******************************************************************
  183. if (n!=1) {
  184. write("&nbsp;&nbsp;");
  185. write("</font></td></tr>");
  186. write("<tr><td width=770 bgcolor=#C6C6C6 height=1>");
  187. write("</td></tr>");
  188. write("<tr><td width=770></td></tr>");}
  189. write("</table>");
  190. }
  191. }
  192. /*function Q(){
  193. var name,value,i; 
  194. var str=location.href;
  195. var str1='Error';
  196. str=str.toUpperCase() 
  197. var num=str.indexOf("R") 
  198. if(num!=-1){
  199. str1=str.substr(num,6);
  200. }
  201. if(str1!='RISING')
  202. document.location.href="http://www.rising.com.cn/";
  203. }
  204. var Request=new Q();
  205. */
  206. // 20030530 by J.W.
  207. if ( top != self )
  208. {
  209.     top.location.href = unescape(window.location.pathname);
  210. }