public/DateSelect.js

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。



//日期选择帮助
function DateSelect(asID)
{
	var oSendParm = new Object();
	var sFeatures = "edge: Raised; center: Yes; help: No; resizable: No; status: No;"
	var lLeft,lTop,lWidth,lHeight;
	var sDate,sArrayDate,ibDate=true,sTemp;
	
	lWidth  = 218;
	lHeight = 212;
	oSendParm.DataType = document.all(asID).DataType;
	
	if(oSendParm.DataType=="DateTime")
	{
		lHeight = 228;
		ibDate = false;
	}
			
	//*window XP的窗口必须增大
	//var pos =window.navigator.appVersion.toLowerCase().indexOf("nt");
	//var ver = window.navigator.appVersion.substring(pos +3,pos +6);

	
	
		lWidth  +=6;
		lHeight +=8;
	
	
	if(event == null)
	{
		lLeft = screen.availWidth/2  - lWidth/2;
		lTop  = screen.availHeight/2 - 98;
	}
	else
	{
		lLeft = event.screenX ;
		lTop  = event.screenY ;
	}
	
	if(lLeft + lWidth > screen.availWidth)
	{
		if(lLeft > lWidth)
			 lLeft -= lWidth;
		else
			lLeft = 0;
	}
	if(lTop + lHeight > screen.availHeight) 
	{
		if(lTop > lHeight)
			lTop -= lHeight;
		else
			lTop = 0;
	}
	
	sFeatures += "dialogHeight: " + lHeight + "px; dialogWidth: " + lWidth + "px; dialogTop: " + lTop + "px; dialogLeft: " + lLeft + "px;";	
	sDate = document.all(asID).value;
	oSendParm.LastSelect = StringToDate(sDate);
			
后面还有 90 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。