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

📄 top.htm

📁 自动化网络办公系统全部源码officeanywheresystem
💻 HTM
字号:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
var winStatus
winStatus=0;
var nowWidth,nowHeight,nowX,nowY
function mouseSTATUS() { 
this.x = null;
this.y = null;
this.bt= "up";
this.oldx= null;
this.oldy= null;
this.dx= null;
this.dy= null;
this.screeny = null;
this.screenx = null;
 
this.element = null;
this.event = null;
}
 
var mouse = new mouseSTATUS(); 
 
function actualizateMouseSTATUS(e) { 
if (!e) var e = event 
if ( (e.type=="mousedown" || e.type=="mouseup") && e.button!=1) {
//alert("right click");
return true;
}
 
var x=e.x+document.body.scrollLeft
var y=e.y+document.body.scrollTop 

mouse.x = x;
mouse.y = y;
 
 if ( e.type == "mousedown" ) mouse.bt = "down";
else if ( e.type == "mouseup" ) mouse.bt = "up";
 
if (window.event) { 
mouse.screenx=window.event.screenX; 
mouse.screeny=window.event.screenY; 
} else {
mouse.screenx=-1; 
mouse.screeny=-1; 
} 
 
}
 
 
function initMouseEvents() { 
document.onmousedown = actualizateMouseSTATUS 
document.onmousemove = actualizateMouseSTATUS 
document.onmouseup = actualizateMouseSTATUS 
document.ondragstart = new Function("actualizateMouseSTATUS(event); return false;") 
document.oncontextmenu = new Function("return false;")
}
 

initMouseEvents()

var mywindowbt="up"; 
var wincloseSTATUS="up"; 

var ofx=0; 
var ofy=0; 
var opx=0; 
var opy=0; 
var px=0;
var py=0;

var wcpx1=-1, wcpy1=-1;
var wcpx2=-1, wcpy2=-1;

var wclosechanged = false; 

function initToMoveWin() { 
if (wincloseSTATUS=="up" && ( mywindowbt=="up" || mywindowbt=="over") ) { 
wcpx2 = wcpx1 + 11 - 1
wcpy2 = wcpy1 + 11 - 1
if ( mouse.x >= wcpx1 && mouse.x <= wcpx2 && mouse.y >= wcpy1 && mouse.y <= wcpy2) {
if (wclosechanged == false) { 
wclosechanged = true
} 

} else if (wclosechanged == true) { 
wclosechanged = false 
} 
} 

 if ( mouse.y <= 22 && mouse.y >= 1 && mywindowbt == "up" && mouse.bt =="up") { mywindowbt = "over" } 
else if ( ( mouse.y> 22 || mouse.y <1 ) && mywindowbt == "over" && mouse.bt =="up") { mywindowbt = "up" } 
else if ( mouse.y <= 22 && mouse.y >= 1 && mywindowbt == "over" && mouse.bt == "down" ) { 
self.window.focus();

if ( mouse.x >= wcpx1 && mouse.x <= wcpx2 && mouse.y >= wcpy1 && mouse.y <= wcpy2 ) { 
wincloseSTATUS="down" 
} else {
ofx =mouse.x; 
ofy =mouse.y; 
opx =mouse.x; 
opy =mouse.y; 
}
mywindowbt="down";
} 
else if ( mouse.bt =="up" && mywindowbt == "down" ) { 
mywindowbt="up";
ofx=0;
ofy=0;
opx=0;
opy=0;

if ( mouse.x >= wcpx1 && mouse.x <= wcpx2 && mouse.y >= wcpy1 && mouse.y <= wcpy2 && wincloseSTATUS=="down" ) { top.window.close() }

wincloseSTATUS="up" 


} 
else if ( mywindowbt == "down" && wincloseSTATUS == "up") { 
var m_scrx = mouse.screenx; 
var m_scry = mouse.screeny; 
opx = px + ofx - m_scrx;
opy = py + ofy - m_scry;
px = m_scrx - ofx;
py = m_scry - ofy;
top.window.moveTo(px , py); 
} 
setTimeout("initToMoveWin()",20); 
}
function maxwin()
{	
	if(winStatus==0)
	{
		nowWidth=top.document.body.clientWidth;
		nowHeight=top.document.body.clientHeight;
		//alert(nowWidth);
		top.window.resizeTo(window.screen.width,window.screen.height);
		top.window.moveTo(0 , 0); 
		winStatus=1;
		//document.all["changwin"].title="wdfsd";
		//Win.focus();
	}
	else if(winStatus==1)
	{
		var windowX = window.screen.width ;
		var windowY = window.screen.height;
		if (nowWidth>window.screen.width ||nowHeight>window.screen.height ||nowWidth<100||nowHeight<60)
		{
			top.window.resizeTo(720,420);
		}else
		{
			top.window.resizeTo(nowWidth,nowHeight);
		}
		top.window.moveTo((windowX-720)/2,(windowY-420)/2);
		
		winStatus=0;
	}		
}
function min(){
	top.window.moveTo(-1000,-1000)

}

</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="35%" border="0" cellspacing="0" cellpadding="0" bgcolor="F2F1F1">
  <tr> 
    <td width="87%" >
      <table width="425" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="11"><img src="../../images/calendar/new-black.gif" width="11" height="19"></td>
          <td background="../../images/calendar/new-di--1.gif" width="70" class="unnamed1" align="center" valign="bottom"><font color="#CCCCCC">选择图片</font></td>
          <td width="13" background="../../images/calendar/new-di--2.gif"><img width="12" height="19" src="../../images/calendar/new-center.gif"></td>
          <td background="../../images/calendar/new-di--2.gif" width="156"><img src="../../images/calendar/amber--tou.gif" width="10" height="12"></td>
          <td background="../../images/calendar/new-di--2.gif" align="right" width="161"><img src="../../images/calendar/amber--tou.gif" width="10" height="12"></td>
          <td width="9"><img src="../../images/calendar//new-right.gif" width="9" height="19"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<script>initToMoveWin();</script>
</body>
</html>

⌨️ 快捷键说明

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