js.js
上传用户:luoweizhao
上传日期:2021-11-29
资源大小:15269k
文件大小:3k
源码类别:

OA系统

开发平台:

ASP/ASPX

  1. <SCRIPT> 
  2. <!-- 
  3. window.defaultStatus="<%=gg1%>"; 
  4. //--> 
  5. </SCRIPT>
  6. <script language="JavaScript">
  7. <!--
  8. if (self != top) top.location.href = window.location.href
  9. //-->
  10. </script>
  11. <script language=JavaScript>
  12. <!--
  13. //
  14. var version = "other"
  15. browserName = navigator.appName;   
  16. browserVer = parseInt(navigator.appVersion);
  17. if (browserName == "Netscape" && browserVer >= 3) version = "n3";
  18. else if (browserName == "Netscape" && browserVer < 3) version = "n2";
  19. else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version = "e4";
  20. else if (browserName == "Microsoft Internet Explorer" && browserVer < 4) version = "e3";
  21. function marquee1()
  22. {
  23. if (version == "e4" | version == "n3")
  24. {
  25. document.write("<marquee style='BOTTOM: 0px; FONT-WEIGHT: 100px; HEIGHT:100px;  TEXT-ALIGN: left; TOP: 0px' id='news' scrollamount='1' scrolldelay='10' behavior='loop' direction='up' border='0' onmouseover='this.stop()' onmouseout='this.start()'>")
  26. }
  27. }
  28. function marquee2()
  29. {
  30. if (version == "e4" | version == "n3")
  31. {
  32. document.write("</marquee>")
  33. }
  34. }
  35. function marquee_logo_news()
  36. {
  37. if (version == "e4")
  38. {
  39. document.write("<marquee style='BOTTOM: 0px; FONT-WEIGHT: 1200px; HEIGHT:31px;  TEXT-ALIGN: left; TOP: 0px' id='link_map' scrollamount='2' scrolldelay='10' behavior='alternate' direction='right' border='0' onmouseover='this.stop()' onmouseout='this.start()'>")
  40. }
  41. }
  42. function marquee3()
  43. {
  44. if (version == "e4" | version == "n3")
  45. {
  46. document.write("<marquee direction='left' border='0' onmouseover='this.stop()' onmouseout='this.start()'>")
  47. }
  48. }
  49. function marquee4()
  50. {
  51. if (version == "e4" | version == "n3")
  52. {
  53. document.write("</marquee>")
  54. }
  55. }
  56. function marquee5()
  57. {
  58. if (version == "e4" | version == "n3")
  59. {
  60. document.write("<marquee style='BOTTOM: 0px; FONT-WEIGHT: 100px; HEIGHT:100px;  TEXT-ALIGN: left; TOP: 0px' id='news' scrollamount='1' scrolldelay='10' behavior='loop' direction='up' border='0' onmouseover='this.stop()' onmouseout='this.start()'>")
  61. }
  62. }
  63. function marquee6()
  64. {
  65. if (version == "e4" | version == "n3")
  66. {
  67. document.write("</marquee>")
  68. }
  69. }
  70. //-->
  71. </script>
  72. <script language="JavaScript1.2">
  73. function makevisible(cur,which){
  74. if (which==0)
  75. cur.filters.alpha.opacity=100
  76. else
  77. cur.filters.alpha.opacity=20
  78. }
  79. </script>
  80. <script LANGUAGE="javascript">
  81. <!--
  82. function checkdata()
  83. {
  84. if (document.user.UserName.value=="")
  85. {
  86.   alert("对不起,请输入您的论坛用户名!");
  87.   document.user.UserName.focus();
  88.   return false;
  89.  }
  90. else if (document.user.Password.value=="")
  91. {
  92.   alert("对不起,请输入您的论坛密码!");
  93.   document.user.Passwd.focus();
  94.   return false;
  95.  }
  96. }
  97. function MM_preloadImages() { //v3.0
  98.   var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  99.     var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  100.     if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  101. }
  102. function MM_findObj(n, d) { //v4.01
  103.   var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  104.     d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  105.   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  106.   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  107.   if(!x && d.getElementById) x=d.getElementById(n); return x;
  108. }
  109. //-->
  110. </script>// JavaScript Document