[CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Untitled Document</title>
<script language="javascript">
function outputs()
{
var m=document.m.a.value;
document.write("你输入的值是:");
document.write(m);
document.write("<br>按要求排出的结果是:<br>");
m++;
for (var i=1;i<m;i++)
{
if(i%7!=0)
{
document.write(i);
}
else
{
document.write(i);
document.write("<br>")
}
}
}
</script>
</head>
<body>
<form action="abc.asp" name="m" method="post">
输入你想输出的最大数:<input type="text" name="a"><br>
<input type="submit" onmousedown="outputs()">
</form>
</body>
</html>
[/CODE]
[此贴子已经被作者于2007-6-9 13:44:11编辑过]