2006/04/17 | js
类别(网页类学习笔记) | 评论(0) | 阅读(12) | 发表于 10:09
<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title>新建网页 1</title>
</head>

<body topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0>
<center>

<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" height="46" width="503" id="AutoNumber1" style="font-size:14px;" >
<tr>
<Td width="58" height="46" ALIGN="cENTER" VALIGN="cENTER">
<img border="0" src="images/1_p1.jpg" width="58" height="55"></td>
<td width="445" align="center" valign="middle">
<form method="POST" action="aa.asp" id="form1">
请输入生日:<!--webbot bot="Validation" b-value-required="TRUE" --><select size="1" name="Year" id="oSelect" style="width: 100;" > </select>年
<select size="1" style="width: 50;" name="Month" id="Month"></select>月
<select size="1" style="width: 50;" name="Day"></select>日<input type="submit" value="提交" name="B1"><input type="reset" value="重置" name="B2"> </form>
</td>
</tr>

</table>
</center>
<script language=javascript>
function setYear()
{
for (i=1950;i<2050;i++)
{
var oOption = document.createElement("OPTION");
oOption.text=""+i;
oOption.value=""+i;
document.all.oSelect.options.add(oOption);
}
for (i=1;i<13;i++)
{
var oOption = document.createElement("OPTION");
oOption.text=""+i;
oOption.value=""+i;
document.all.Month.options.add(oOption); }
}
setYear();
</script>
</body>

</html>

<!--
<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title>新建网页 1</title>
</head>

<body >
<center>

<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse"

bordercolor="#111111" height="101" width="555" id="AutoNumber1" >
<tr>
<Td width="84">每日运势</td>
<td width="471" align="center" height="92">
<form id="form1" method="POST" action="--WEBBOT-SELF--">
请输入生日:
<select size="1" name="Year" ID="oSelect" style="width: 100;" > </select>年
<select size="1" style="width: 50;" name="Month"></select>月
<select size="1" style="width: 50;" name="Day"></select>日
<input type="submit" value="提交" name="B1"><input type="reset" value="重置" name="B2">
</form>
</td>
</tr>

</table>
</center>
<script language=javascript>
function setYear()
{
for (i=1950;i<2050;i++)
{
var oOption = document.createElement("OPTION");
oOption.text=""+i;
oOption.value=""+i;
form1.oSelect.options.add(oOption);
}
}
setYear();
</script>
</body>

</html>
-->
0

评论Comments