<select name=select1>
</select>
<script language=javascript>
for(var i=0;i<10;i++)
{
document.getElementById("select1").options[i]=new Option(parseInt(20)+i,parseInt(20)+i)
}
</script>
</select>
<script language=javascript>
for(var i=0;i<10;i++)
{
document.getElementById("select1").options[i]=new Option(parseInt(20)+i,parseInt(20)+i)
}
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title></head>
<body>
<form name="form1" method="post" action="">
<select name="select1">
</select>
</form>
<SCRIPT language=javascript>
var e = document.forms[0].select1;
for (var i=20; i<(30+1); i++)
e.options.add(new Option(i, i));
</SCRIPT>
</body>
</html>