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

📄 popcalendardlg.js.vm

📁 一个webwork+spring+ibatis的小例子
💻 VM
字号:
<SCRIPT LANGUAGE="JavaScript">
<!--
function fPopUpCalendarDlg(ctrlobj) 
{
	showx = event.screenX - event.offsetX - 4 - 210 ; // + deltaX;
	showy = event.screenY - event.offsetY + 18; // + deltaY;
	newWINwidth = 210 + 4 + 18;

	retval = window.showModalDialog("$action.getText('config.jsPath')/calendardlg.htm", "", "dialogWidth:200px; dialogHeight:200px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;scrollbars:no;Resizable=no; "  );
	if( retval != null ) {
		ctrlobj.value = retval;
	}
}

/*
function fPopUpCalendarDlg_2(ctrlobj) 
{
	showx = event.screenX - event.offsetX - 4 - 210 ; // + deltaX;
	showy = event.screenY - event.offsetY + 18; // + deltaY;
	newWINwidth = 210 + 4 + 18;

	retval = window.showModalDialog("$action.getText('config.jsPath')/calendardlg_1.htm", "", "dialogWidth:217px; dialogHeight:250px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;scrollbars:no;Resizable=no; "  );
	if( retval != null ) {
		ctrlobj.value = retval;
	}
}
*/
function fPopUpCalendarDlg_1(obj,path)
{
	var width = 375;
	var height = 260;
	
	var left = window.screenLeft + obj.offsetLeft + 2;
	var top = window.screenTop + obj.offsetTop + obj.offsetHeight;
	if (parseInt((left + width),10) > parseInt(screen.availWidth,10)) left = left - width + obj.offsetWidth - 2;
	if ((top + height) > screen.availHeight) top = top - height - obj.offsetHeight + 2;	
	
	retval = window.showModalDialog("$action.getText('config.jsPath')/calendardlg_1.htm", window, "dialogWidth:"+width+"px; dialogHeight:"+height+"px; dialogLeft:"+left+"px; dialogTop:"+top+"px; status:no;");

	if( retval != null ) 
	{
		if(retval.length>10)
			retval=retval.substr(0,retval.length-3);
		obj.value = retval;
	}
}
//-->
</SCRIPT>

⌨️ 快捷键说明

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