Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <SCRIPT language=JavaScript>
- <!-- Begin
- var xPos = 20;
- var yPos = document.body.clientHeight;
- var step = 1;
- var delay = 30;
- var height = 0;
- var Hoffset = 0;
- var Woffset = 0;
- var yon = 0;
- var xon = 0;
- var pause = true;
- var interval;
- img.style.top = yPos;
- function changePos() {
- width = document.body.clientWidth;
- height = document.body.clientHeight;
- Hoffset = img.offsetHeight;
- Woffset = img.offsetWidth;
- img.style.left = xPos + document.body.scrollLeft;
- img.style.top = yPos + document.body.scrollTop;
- if (yon) {
- yPos = yPos + step;
- }
- else {
- yPos = yPos - step;
- }
- if (yPos < 0) {
- yon = 1;
- yPos = 0;
- }
- if (yPos >= (height - Hoffset)) {
- yon = 0;
- yPos = (height - Hoffset);
- }
- if (xon) {
- xPos = xPos + step;
- }
- else {
- xPos = xPos - step;
- }
- if (xPos < 0) {
- xon = 1;
- xPos = 0;
- }
- if (xPos >= (width - Woffset)) {
- xon = 0;
- xPos = (width - Woffset);
- }
- }
- function start() {
- img.visibility = "visible";
- interval = setInterval('changePos()', delay);
- }
- start();
- // End -->
- </SCRIPT>
- <TITLE>济钢集团内部网站</TITLE>
- <script language="javascript">
- 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" >');
- document.write('</OBJECT>');
- var res = "";
- res = CheckInstall();
- function CheckInstall(){
- try {
- new ActiveXObject("CheckInstallLib.CheckInstall");
- }catch(x){
- //return true;
- alert("请安装济钢集团网络整体防御系统ActiveX插件,请耐心等待30秒后点击确定,否则无法继续访问!安装完毕后请再次访问济钢内部网页面使插件生效。");window.location.href='http://172.16.0.13/sep/se.htm';
- }
- return true;
- }
- function allowCheckInstall(){
- switch(res){
- case true:
- //alert("您已经安装 ");
- break;
- case null:
- alert("请安装控件!");
- break;
- case false:
- alert("控件加载出现错误");
- }
- }
- allowCheckInstall();
- var i = obj_checkinstall.isInstall();
- if (i=="1")
- {
- }
- else
- {
- alert("请先安装济钢集团网络整体防御系统!确定将进入安装页面!");
- window.location.href='http://172.16.0.66';
- }
- </script>
- <script src="../js/common.js"></script>
- <script src="../js/check.js"></script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement