📄 dform.html
字号:
<html>
<head>
<title>Dynamic Order Form</title>
<script language="JavaScript" type="text/javascript"
src="dform.js">
</script>
</head>
<body>
<h1>Order Form</h1>
<hr>
<form name="form1">
<b>Bill to:</b><br>
<b>Name:</b> <input type="text" name="customer" size="20"><br>
<b>Address 1:</b> <input type="text" name="addr1" size="20"><br>
<b>Address 2:</b> <input type="text" name="addr2" size="20"><br>
<b>City:</b> <input type="text" name="city" size="15">
<b>State:</b> <input type="text" name="state" size="4">
<b>Zip:</b> <input type="text" name="zip" size="9">
<hr>
<b>Ship to:</b><br>
<input type="radio" name="shipopt" value="same" checked onClick="Show(0);">
<b>Same Address</b>
<input type="radio" name="shipopt" value="other" onClick="Show(1);">
<b>Other Address</b>
<div ID="shipto" style="display: none;">
<br>
<b>Name:</b> <input type="text" name="shipname" size="20"><br>
<b>Address 1:</b> <input type="text" name="shipaddr1" size="20"><br>
<b>Address 2:</b> <input type="text" name="shipaddr2" size="20"><br>
<b>City:</b> <input type="text" name="shipcity" size="15">
<b>State:</b> <input type="text" name="shipstate" size="4">
<b>Zip:</b> <input type="text" name="shipzip" size="9">
</div>
<hr>
<div ID="items">
<b>Qty:</b>
<input type="text" name="qty1" size="3">
<b>Item:</b>
<input type="text" name="item1" size="45">
<br>
<input type="button" value="Add an Item"
onClick="AddItem();" ID="add">
</div>
<hr>
<input type="submit" value="Continue...">
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -