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

📄 div.htm

📁 本文件包基于asp.net + javascript方式
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>创建新层</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="../css/tools.css"> 
<script src="../common/common.js"></script>
<script language="javascript">
function returnvar()
{
	var arr=document.all.tags ("input");
	var ret="";
	var i;
	for(i=0;i<arr.length;i++){
		if(arr[i].type=="text"){
			if(arr[i].value!=""){
				if(!isNaN(arr[i].value))	ret+=arr[i].value+"|";
				else{
					alert("输入数值不合法");
					arr[i].select();
					return false;
				}
			}
			else{
				alert("输入数值不能为空");
				arr[i].focus();
				return false;
			}
		}
	}
	ret=ret.substring(0,ret.length-1);
	window.returnValue=ret;
	window.close ();
}
</script>

</head>

<body bgcolor=Silver>
<table width="100%"  border="0" cellspacing="6" cellpadding="1">
  <tr>
    <td width="15%" align="right">顶端</td>
    <td width="15%"><input type="text" id=sys_divTop style="width:50px" onFocus="this.select()"></td>
    <td width="15%" align="right">左端</td>
    <td width="14%"><input type="text" id=sys_divLeft style="width:50px" onFocus="this.select()"></td>
    <td width="41%" align="center">
	<input type="button" id=sys_submit onClick="returnvar()" value="确定">
	</td>
  </tr>
  <tr>
    <td align="right">宽</td>
    <td><input type="text" id=sys_divWidth style="width:50px" onFocus="this.select()"></td>
    <td align="right">高</td>
    <td><input type="text" id=sys_divHeight style="width:50px" onFocus="this.select()"></td>
    <td align="center">
	<input type="button" id=sys_cancel onClick="window.close()" value="取消">
	</td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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