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

📄 win.js

📁 OA.....其他人不需帐号就可自由下载此源码其他人不需帐号就可自由下载此源码
💻 JS
字号:
var popUpWin=0;

function OpenWin(URLStr,name,width,height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  if(width=="" || width==null || width==undefined)
	  width = 750;
  if(height=="" || height==null || height==undefined)
	  height = 450;
  var left = (screen.width/2) - width/2;
  var top = (screen.height/2) - height/2;
  popUpWin = open(URLStr, name, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top);
}

function OpenMsg(url,name,wid,hei){
	if(wid=="" || wid==null || wid==undefined)
		wid = 600;
	if(hei=="" || hei==null || hei==undefined)
		hei = 400;
	var value = showModalDialog(url,window,'dialogWidth='+wid+'px;dialogHeight='+hei+'px;center=yes;help=no;scroll=auto;status=no');
	return value;
}

function CloseWin(url) {
	var opener = window.opener;
	if(opener!=null || opener!=undefined) {
		if(url != null)
			window.opener.location = url;
		else
			window.opener.location.reload();
	self.close();
	}else{//���ò��ǵ���ҳ������
		forward(url);
	}
	
}

⌨️ 快捷键说明

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