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

📄 showtable.asp

📁 与asp相关的技术 如数据库和网页设计 很有用的哦
💻 ASP
字号:
<html>
<head>
	<title>插入表格</title>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
	<script>
	//点击OK
	function clickOK()
	{
		var Ti=document.TInfor
		var str="<table width=" +Ti.width.value+Ti.unit.value+ " cellspacing="+Ti.cellspacing.value+" cellpadding="+Ti.cellpadding.value+" border=" +Ti.border.value +">"
		//逐行插入
		for(i=1;i<=Ti.Lnum.value;i++)
		{ 
			str=str+"<tr>";
			for(j=1;j<=Ti.Rnum.value;j++)
				str=str+"<td>&nbsp;</td>";
			str=str+"</tr>"
		}
		str=str+"</table>";
		window.returnValue=str;
		window.close();
	} 
	//如果点击取消
	function clickcancel()
	{
		window.returnValue="";
		window.close();
	}
	</script>
</head>
<body bgcolor=menu topmargin="10" leftmargin="20">
	<form name="TInfor">
		行数:<input type="text" name="Lnum" size="7" value="2" >
		单元格边距:<input type="text" name="cellpadding" value="0" size="7"><br>   
		列数:<input type="text" name="Rnum" size="7" value="2">
		单元格间距:<input type="text" name="cellspacing" value="0" size="7"> <br>
		宽度:<input type="text" name="width" value="100" size="5">
		<select name="unit"> 
			<option value="">px</option> 
			<option value="%" selected>%</option> 
		</select> 
		边框宽度:<input type="text" name="border" value="1" size="4"> <br>
		<center>
		<input type="button" style="width: 60;" name="ok" value="确&nbsp;认" onclick="clickOK();">
		<input type="button" style="width: 60;" name="cancel" value="取&nbsp;消" onclick="clickcancel();"> 
	</form> 
</body> 
</html> 

⌨️ 快捷键说明

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