fun_script.js

来自「OFFICE办公自动化」· JavaScript 代码 · 共 25 行

JS
25
字号

//URL的跳转
function gotourl(url,sname,swidth,sheight,sreplace,sclose)
{
	var objNewWin;				
	if (swidth=="") swidth = "790";
	if (sheight=="") sheight = "480";
	if (sreplace=="") sreplace = false;
	if (sclose=="") sclose = false;
	objNewWin = window.open(url,sname,"fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=" + swidth + ",height=" + sheight + ",top=200,left=200",sreplace);	
	//alert(objNewWin.opener.dialogLeft);
	// + "aaa" + objNewWin.opener.screenTop);
	if (sclose) window.close();
	objNewWin.focus();	
}

function popdialog(url,swidth,sheight){
	if (swidth=="") swidth = "280";
	if (sheight=="") swidth = "180";
	var sValue = showModalDialog(url,"","dialogWidth:" + swidth + ";status:no;dialogHeight:" + sheight);
	return sValue;
}

		
 

⌨️ 快捷键说明

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