891011121314
151617。。。
[此贴子已经被作者于2007-6-5 21:50:54编辑过]
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!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>
[此贴子已经被作者于2007-6-5 21:52:19编辑过]
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!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>
[此贴子已经被作者于2007-6-5 21:54:49编辑过]
<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>