code.asp
资源名称:1.rar [点击查看]
上传用户:ziqing_518
上传日期:2022-08-09
资源大小:446k
文件大小:4k
源码类别:

多媒体编程

开发平台:

ASP/ASPX

  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  4. <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
  5. <meta name="ProgId" content="FrontPage.Editor.Document">
  6. <title><%=strHomepage_1%></title>
  7. <style type="text/css">
  8. <!--
  9. BODY{ font-family:"宋体"; font-size: 12px;
  10. scrollbar-face-color:ffffff;
  11. scrollbar-shadow-color:C1C1BB;
  12. scrollbar-highlight-color:C1C1BB;
  13. scrollbar-3dlight-color:EBEBE4;
  14. scrollbar-darkshadow-color:EBEBE4;
  15. scrollbar-track-color:F4F4F0;
  16. scrollbar-arrow-color:CACAB7;
  17. }
  18. p, input, font, select, option, textarea, form { font-family:"宋体"; font-size: 12px }
  19. td { table-layout:fixed;word-break :break-all; font-family:"宋体"; font-size: 12px}
  20. a:link { text-decoration: none }
  21. a:visited { text-decoration: none }
  22. a:hover { text-decoration: underline }
  23. a:active { text-decoration: none; font-size: 12px }
  24. .border { border-collapse: collapse; border-style: dotted; border-width: 1;  color:#000000; background-color:#efefef}
  25. .shadow1 { font-size: 12px; filter:dropshadow(color=#000000,offx=1,offy=1);color:#ffffff;}
  26. .shadow2 { font-size: 12px; filter:dropshadow(color=#d5d5d5,offx=1,offy=1);color:#000000;}
  27. .p1 { color: #ffffff; font-size: 12px; text-decoration: none; }
  28. .p2 { color: #000000; font-size: 12px; text-decoration: none; }
  29. .p3 { color: #004080; font-size: 14px; text-decoration: none; }
  30. .p4 { background-color: #C0C0C0; border: 1 solid #000000; color: #333333; }
  31. -->
  32. </style>
  33. <script Language="JavaScript">
  34. //***********默认设置定义.*********************
  35. tPopWait=50;//停留tWait豪秒后显示提示。
  36. tPopShow=5000;//显示tShow豪秒后关闭提示
  37. showPopStep=20;
  38. popOpacity=99;
  39. //***************内部变量定义*****************
  40. sPop=null;
  41. curShow=null;
  42. tFadeOut=null;
  43. tFadeIn=null;
  44. tFadeWaiting=null;
  45. document.write('<style type="text/css" id="defaultPopStyle">');
  46. document.write('.cPopText {  background-color: #F8F8F5;color:#000000; border: 1px #000000 solid;font-color: font-size: 12px; padding-right: 4px; padding-left: 4px; height: 20px; padding-top: 2px; padding-bottom: 2px; filter: Alpha(Opacity=0)}');
  47. document.write('</style>');
  48. document.write('<div id="dypopLayer" style="position:absolute;z-index:1000;" class="cPopText"></div>');
  49. function showPopupText()
  50. {
  51. var o=event.srcElement;
  52. MouseX=event.x;
  53. MouseY=event.y;
  54. if(o.alt!=null && o.alt!='')
  55. {
  56. o.dypop=o.alt;o.alt=''
  57. }
  58. if(o.title!=null && o.title!="")
  59. {
  60. o.dypop=o.title;o.title=''
  61. }
  62. if(o.dypop!=sPop)
  63. {
  64. sPop=o.dypop;
  65. clearTimeout(curShow);
  66. clearTimeout(tFadeOut);
  67. clearTimeout(tFadeIn);
  68. clearTimeout(tFadeWaiting);
  69. if(sPop==null || sPop=='') 
  70. {
  71. dypopLayer.innerHTML='';
  72. dypopLayer.style.filter='Alpha()';
  73. dypopLayer.filters.Alpha.opacity=0;
  74. }
  75. else 
  76. {
  77. if(o.dyclass!=null) popStyle=o.dyclass 
  78. else popStyle='cPopText';
  79. curShow=setTimeout('showIt()',tPopWait);
  80. }
  81. }
  82. }
  83. function showIt()
  84. {
  85. dypopLayer.className=popStyle;
  86. dypopLayer.innerHTML=sPop;
  87. popWidth=dypopLayer.clientWidth;
  88. popHeight=dypopLayer.clientHeight;
  89. if(MouseX+12+popWidth>document.body.clientWidth) popLeftAdjust=-popWidth-24
  90. else popLeftAdjust=0;
  91. if(MouseY+12+popHeight>document.body.clientHeight) popTopAdjust=-popHeight-24
  92. else popTopAdjust=0;
  93. dypopLayer.style.left=MouseX+12+document.body.scrollLeft+popLeftAdjust;
  94. dypopLayer.style.top=MouseY+12+document.body.scrollTop+popTopAdjust;
  95. dypopLayer.style.filter='Alpha(Opacity=0)';
  96. fadeOut();
  97. }
  98. function fadeOut(){
  99. if(dypopLayer.filters.Alpha.opacity<popOpacity) 
  100. {
  101. dypopLayer.filters.Alpha.opacity+=showPopStep;
  102. tFadeOut=setTimeout('fadeOut()',1);
  103. }
  104. else 
  105. {
  106. dypopLayer.filters.Alpha.opacity=popOpacity;
  107. tFadeWaiting=setTimeout('fadeIn()',tPopShow);
  108. }
  109. }
  110. function fadeIn(){
  111. if(dypopLayer.filters.Alpha.opacity>0)
  112.  {
  113. dypopLayer.filters.Alpha.opacity-=1;
  114. tFadeIn=setTimeout('fadeIn()',1);
  115. }
  116. }
  117. document.onmouseover=showPopupText;
  118. //标题处理结束
  119. </script>
  120. </head>
  121. <body bgcolor=white text=#000000 link=#000000 vlink=#000000>