Advertisement
Motoo

垃圾脚步新

Nov 3rd, 2013
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. <SCRIPT language=JavaScript>
  2. <!-- Begin
  3. var xPos = 20;
  4. var yPos = document.body.clientHeight;
  5. var step = 1;
  6. var delay = 30;
  7. var height = 0;
  8. var Hoffset = 0;
  9. var Woffset = 0;
  10. var yon = 0;
  11. var xon = 0;
  12. var pause = true;
  13. var interval;
  14. img.style.top = yPos;
  15. function changePos() {
  16. width = document.body.clientWidth;
  17. height = document.body.clientHeight;
  18. Hoffset = img.offsetHeight;
  19. Woffset = img.offsetWidth;
  20. img.style.left = xPos + document.body.scrollLeft;
  21. img.style.top = yPos + document.body.scrollTop;
  22. if (yon) {
  23. yPos = yPos + step;
  24. }
  25. else {
  26. yPos = yPos - step;
  27. }
  28. if (yPos < 0) {
  29. yon = 1;
  30. yPos = 0;
  31. }
  32. if (yPos >= (height - Hoffset)) {
  33. yon = 0;
  34. yPos = (height - Hoffset);
  35. }
  36. if (xon) {
  37. xPos = xPos + step;
  38. }
  39. else {
  40. xPos = xPos - step;
  41. }
  42. if (xPos < 0) {
  43. xon = 1;
  44. xPos = 0;
  45. }
  46. if (xPos >= (width - Woffset)) {
  47. xon = 0;
  48. xPos = (width - Woffset);
  49. }
  50. }
  51. function start() {
  52. img.visibility = "visible";
  53. interval = setInterval('changePos()', delay);
  54. }
  55. start();
  56. // End -->
  57. </SCRIPT>
  58.  
  59. <TITLE>济钢集团内部网站</TITLE>
  60.  
  61. <script language="javascript">
  62.  
  63.  
  64. document.write('<OBJECT CLASSID="CLSID:1828B33C-F643-4634-8D36-0C8DE5FE4DE9" CODEBASE="http://172.16.0.13/sep/CheckInstallLib.CAB#version=1,0,0,0" id="obj_checkinstall" style="LEFT: 0px; VISIBILITY: hidden; TOP: 0px;height:0px" >');
  65. document.write('</OBJECT>');
  66.  
  67. var res = "";
  68.  
  69. res = CheckInstall();
  70.  
  71.  
  72. function CheckInstall(){
  73. try {
  74.  
  75. new ActiveXObject("CheckInstallLib.CheckInstall");
  76. }catch(x){
  77. //return true;
  78. alert("请安装济钢集团网络整体防御系统ActiveX插件,请耐心等待30秒后点击确定,否则无法继续访问!安装完毕后请再次访问济钢内部网页面使插件生效。");window.location.href='http://172.16.0.13/sep/se.htm';
  79. }
  80. return true;
  81. }
  82.  
  83. function allowCheckInstall(){
  84. switch(res){
  85. case true:
  86. //alert("您已经安装 ");
  87. break;
  88. case null:
  89. alert("请安装控件!");
  90. break;
  91. case false:
  92. alert("控件加载出现错误");
  93. }
  94. }
  95.  
  96. allowCheckInstall();
  97.  
  98.  
  99. var i = obj_checkinstall.isInstall();
  100.  
  101. if (i=="1")
  102. {
  103.  
  104. }
  105. else
  106. {
  107. alert("请先安装济钢集团网络整体防御系统!确定将进入安装页面!");
  108. window.location.href='http://172.16.0.66';
  109. }
  110.  
  111. </script>
  112.  
  113. <script src="../js/common.js"></script>
  114. <script src="../js/check.js"></script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement