⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 openmicwin.js

📁 负责公文的传输及一些处理功能
💻 JS
📖 第 1 页 / 共 2 页
字号:
'	'+ '\n'+
'function initToMoveWin() {  '+ '\n'+
'		if (wincloseSTATUS=="up" && ( mywindowbt=="up" || mywindowbt=="over") ) { '+ '\n'+
'	'+ '\n'+
'				if ( parent.mainloaded ) document.all["myCLOCKgrf"].style.visibility = "hidden"; '+ '\n'+
'	'+ '\n'+
'				document.all["myCLOCKgrf"].style.pixelLeft=document.body.clientWidth-66 	'+ '\n'+
'				document.all["myCLOCKgrf"].style.pixelTop =8 '+ '\n'+
'				wcpx1 = document.all["mywindowCLOSE"].style.pixelLeft=document.body.clientWidth-21 '+ '\n'+
'				wcpy1 = document.all["mywindowCLOSE"].style.pixelTop = 8 '+ '\n'+
'				wcpx2 = wcpx1 + 11 - 1 '+ '\n'+
'				wcpy2 = wcpy1 + 11 - 1 '+ '\n'+
'				wspx1 = document.all["mywindowSIZE"].style.pixelLeft=document.body.clientWidth-36 '+ '\n'+
'				wspy1 = document.all["mywindowSIZE"].style.pixelTop = 8 '+ '\n'+
'				wspx2 = wspx1 + 11 - 1 '+ '\n'+
'				wspy2 = wspy1 + 11 - 1 '+ '\n'+
'				wmpx1 = document.all["mywindowMinimize"].style.pixelLeft=document.body.clientWidth-51 '+ '\n'+
'				wmpy1 = document.all["mywindowMinimize"].style.pixelTop = 8 '+ '\n'+
'				wmpx2 = wmpx1 + 11 - 1 '+ '\n'+
'				wmpy2 = wmpy1 + 11 - 1 '+ '\n'+

'				if ( mouse.x >= wcpx1 && mouse.x <= wcpx2 && mouse.y >= wcpy1 && mouse.y <= wcpy2) { '+ '\n'+
'					if (wclosechanged == false) { '+ '\n'+
'						document.all["mywindowCLOSE"].document.images["closewin"].src=windowCERRARImg_o.src '+ '\n'+
'						document.all["mywindowCLOSE"].document.images["closewin"].title="关闭"'+ '\n'+
'						wclosechanged = true'+ '\n'+
'					}            '+ '\n'+
'						     '+ '\n'+
'				} else if (wclosechanged == true) {'+ '\n'+
'					document.all["mywindowCLOSE"].document.images["closewin"].src=windowCERRARImg_d.src '+ '\n'+
'					wclosechanged = false'+ '\n'+
'				}                    '+ '\n'+

'				if ( mouse.x >= wspx1 && mouse.x <= wspx2 && mouse.y >= wspy1 && mouse.y <= wspy2) { '+ '\n'+
'					if (wsizechanged == false) { '+ '\n'+
'						document.all["mywindowSIZE"].document.images["resizewin"].src=windowSIZEImg_o.src '+ '\n'+
'						document.all["mywindowSIZE"].document.images["resizewin"].title="缩放" '+ '\n'+
'						wsizechanged = true'+ '\n'+
'					}            '+ '\n'+
'						     '+ '\n'+
'				} else if (wsizechanged == true) {'+ '\n'+
'					document.all["mywindowSIZE"].document.images["resizewin"].src=windowSIZEImg.src '+ '\n'+
'					wsizechanged = false'+ '\n'+
'				}                    '+ '\n'+

'				if ( mouse.x >= wmpx1 && mouse.x <= wmpx2 && mouse.y >= wmpy1 && mouse.y <= wmpy2) { '+ '\n'+
'					if (minichanged == false) { '+ '\n'+
'						document.all["mywindowMinimize"].document.images["miniwin"].src=windowMinimize_b.src '+ '\n'+
'						document.all["mywindowMinimize"].document.images["miniwin"].title="最小化" '+ '\n'+
'						minichanged = true'+ '\n'+
'					}            '+ '\n'+
'						     '+ '\n'+
'				} else if (minichanged == true) {'+ '\n'+
'					document.all["mywindowMinimize"].document.images["miniwin"].src=windowMinimize_a.src '+ '\n'+
'					minichanged = false'+ '\n'+
'				}                    '+ '\n'+

'		}            '+ '\n'+

'																							'+ '\n'+
'		     if (   mouse.y <= 22 && mouse.y >= 1   && mywindowbt == "up"   && mouse.bt =="up"    ) { mywindowbt = "over" }'+ '\n'+
'		else if ( ( mouse.y  > 22 || mouse.y <  1 ) && mywindowbt == "over" && mouse.bt =="up"    ) { mywindowbt = "up"   } '+ '\n'+
'		else if (   mouse.y <= 22 && mouse.y >= 1   && mywindowbt == "over" && mouse.bt == "down" ) { '+ '\n'+
'			self.window.focus();         '+ '\n'+
'	                     '+ '\n'+
'			if ( mouse.x >= wcpx1 && mouse.x <= wcpx2 && mouse.y >= wcpy1 && mouse.y <= wcpy2 ) { '+ '\n'+
'				wincloseSTATUS="down"'+ '\n'+
'				document.all["mywindowCLOSE"].document.images["closewin"].src=windowCLOSEIMGdwn.src '+ '\n'+
'			} else {                     '+ '\n'+
'				ofx =  mouse.x;      '+ '\n'+
'				ofy =  mouse.y;      '+ '\n'+
'				opx =  mouse.x;      '+ '\n'+
'				opy =  mouse.y;      '+ '\n'+
'			}	                     '+ '\n'+
'			mywindowbt="down";           '+ '\n'+
'		}            '+ '\n'+
'		else if ( mouse.bt =="up" && mywindowbt == "down" ) { '+ '\n'+
'			mywindowbt="up";             '+ '\n'+
'			ofx=0;                       '+ '\n'+
'			ofy=0;                       '+ '\n'+
'			opx=0;                       '+ '\n'+
'			opy=0;                       '+ '\n'+
'																							'+ '\n'+
'			if ( mouse.x >= wcpx1 && mouse.x <= wcpx2 && mouse.y >= wcpy1 && mouse.y <= wcpy2 && wincloseSTATUS=="down" ) { top.window.close() } '+ '\n'+
'			if ( mouse.x >= wspx1 && mouse.x <= wspx2 && mouse.y >= wspy1 && mouse.y <= wspy2) { wRs();} '+ '\n'+
'			if ( mouse.x >= wmpx1 && mouse.x <= wmpx2 && mouse.y >= wmpy1 && mouse.y <= wmpy2) { window.blur();} '+ '\n'+
'																							'+ '\n'+
'			wincloseSTATUS="up"          '+ '\n'+
'		             '+ '\n'+
'		} '+ '\n'+
'		else if ( mywindowbt == "down" && wincloseSTATUS == "up") {'+ '\n'+
'			var m_scrx = mouse.screenx;  '+ '\n'+
'			var m_scry = mouse.screeny;  '+ '\n'+
'			opx = px + ofx - m_scrx;     '+ '\n'+
'			opy = py + ofy - m_scry;     '+ '\n'+
'			px = m_scrx - ofx - 1;           '+ '\n'+
'			py = m_scry - ofy - 1;           '+ '\n'+
'			top.window.moveTo(px , py);  '+ '\n'+
'		}            '+ '\n'+
'	setTimeout("initToMoveWin()",20);'+ '\n'+
'}                           '+ '\n'+
'</script> '+ '\n'+
'</head>	'+ '\n'+
'<body TOPMARGIN=0 LEFTMARGIN=0 oncontextmenu=self.event.returnValue=false MARGINWIDTH=0 MARGINHEIGHT=0 scroll=no style="border: 0px solid '+ winBORDERCOLOR +'; overflow: hidden; margin: 0pt;" bgcolor='+winBGCOLOR+'>'+ '\n'+
'<object id=IcoMinimize type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"> '+'\n'+
'<param name="Command" value="Minimize"></object>'+'\n'+
'<div id=mywindow><img src="'+NONEgrf+'" width=100% height=22></div>'+ '\n'+
'<div id=mywinTITLE>'+ '<table width=100% height=25 border=0 cellpadding=0 cellspacing=0><tr><td valign=middle align=left>'+winTIT+'</td></tr></table>' +'</div>'+ '\n'+
'<div id=mywindowCLOSE><img name=closewin src="'+ CLOSEup +'" border=0 width=11 height=11></div>'+ '\n'+
'<div id=mywindowSIZE><img name=resizewin src="'+  resizePIC +'" border=0 width=11 height=11></div>'+ '\n'+
'<div id=mywindowMinimize><img name=miniwin src="'+ miniPIC +'" border=0 width=11 height=11></div>'+ '\n'+
'<div id=myCLOCKgrf><img name=clockwin src="'+ CLOCKgrf   +'" border=0 width=11 height=11></div>'+ '\n'+
'</body> '+ '\n'+
'<script>initToMoveWin();</script>'+ '\n'+
'</html>'+ '\n'

var chromeFRMhtml = '' +
'<HTML>	'+ '\n'+
'<HEAD>  '+ '\n'+
'<TITLE>'+ winREALtit +'</TITLE> '+ '\n'+
'</HEAD> '+ '\n'+
'<script>'+ '\n'+
'mainloaded = false	'+ '\n'+
'function generatetitle() { '+ '\n'+
'	if( window.frames["frmTIT"] && window.frames["noneL"] && window.frames["noneR"] && window.frames["noneB"]) {	'+ '\n'+
'		frmTIT.document.open();	'+ '\n'+
'		frmTIT.document.write( "'+ quitasaltolinea(chromeTIThtml) +'" );	'+ '\n'+
'		frmTIT.document.close();	'+ '\n'+
'		noneL.document.bgColor="'+ winBGCOLOR +'"	'+ '\n'+
'		noneR.document.bgColor="'+ winBGCOLOR +'"	'+ '\n'+
'		noneB.document.bgColor="'+ winBGCOLOR +'" '+ '\n'+
'		outL.document.bgColor="'+ winBORDERCOLORsel +'"	'+ '\n'+
'		outR.document.bgColor="'+ winBORDERCOLOR +'" '+ '\n'+
'	} else {'+ '\n'+
'		setTimeout("generatetitle()",200)'+ '\n'+
'	}'+ '\n'+
'}'+ '\n'+
'generatetitle()	'+ '\n'+
'</script>'+ '\n'+
'<frameset border=0 framespacing=0 frameborder=0 cols="1,100%,1" onload="mainloaded=true" onreadystatechange="generatetitle()">'+ '\n'+
'	<frame name=outL src="about:blank" scrolling=no noresize>'+ '\n'+
'		<frameset border=0 framespacing=0 frameborder=0 rows="25,100%,5">'+ '\n'+
'			<frame name=frmTIT src="about:blank" scrolling=no noresize style="border-top:1px solid buttonhighlight;">'+ '\n'+
'				<frameset border=0 framespacing=0 frameborder=0 cols="5,100%,5">'+ '\n'+
'					<frame name=noneL src="about:blank" scrolling=no noresize>'+ '\n'+
'					<frame name=MainFrame src="'+theURL+'" scrolling=auto style="border-buttom:1px solid buttonhighlight;">'+ '\n'+
'					<frame name=noneR src="about:blank" scrolling=no noresize>'+ '\n'+
'				</frameset>'+ '\n'+
'			<frame name=noneB src="about:blank" scrolling=no noresize style="border-bottom:1px solid buttonshadow">'+ '\n'+
'		</frameset>'+ '\n'+
'	<frame name=outR src="about:blank" scrolling=no noresize>'+ '\n'+
'</frameset>'+ '\n'+
'</HTML>'

	splashWin = window.open( "" , wname, "fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0"+s);
	if(FS){
			splashWin.resizeTo(window.screen.availWidth,window.screen.availHeight);
			splashWin.moveTo(0,0);
	}else{
			splashWin.resizeTo( Math.ceil( W )       , Math.ceil( H ) );
			splashWin.moveTo  ( Math.ceil( windowX ) , Math.ceil( windowY ) );
	}

		splashWin.document.open();
		splashWin.document.write( chromeFRMhtml );
		splashWin.document.close();

	}
	else    {
		var splashWin = window.open(theURL, wname, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1"+s, true);
	}

	splashWin.focus();
}

function quitasaltolinea(txt) {

  var salida = txt.toString()
  var re     = /\\/g; var salida = salida.replace(re, "\\\\");
  var re     = /\//g; var salida = salida.replace(re, "\\\/");
  var re     = /\"/g; var salida = salida.replace(re, "\\\"");
  var re     = /\'/g; var salida = salida.replace(re, "\\\'");
  var re     = /\n/g; var salida = salida.replace(re, "\\n");
  var re     = /  /g; var salida = salida.replace(re, "");
  var re     = /\t/g; var salida = salida.replace(re, "");
  var re     = /\r/g; var salida = salida.replace(re, "");

  return salida

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -