给你个例子吧。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
</head>
<div align="center">
</body>
</html>
<html></html>
<link rel="stylesheet" type="text/css" href="style/style1.css">
<body bgcolor="#D6D3CE" topmargin=0 leftmargin=0>
<body bgcolor="#D6D3CE" onLoad="go()">
<font color="#000000">
<script language="JavaScript">
<!---
today=new Date();
function initArray(){
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments[i] }
var d=new initArray("<font color=yellow>星期日","<font color=black>星期一","<font color=black>星期二","<font color=black>星期三","<font color=black>星期四","<font color=black>星期五","<font color=yellow>星期六");
document.write("<font color=black>",today.getYear(),"年",today.getMonth()+1,"月",today.getDate(),"日</font>",d[today.getDay()+1]);
//-->
</script>
<SCRIPT language=javascript>
function openwin(wname)
{
window.open('' , wname ,"width=700,height=360,top=0,left=0,location=no,menubar=yes,scrollbars=yes,resizable=yes,status=no,toolbar=NO")
}
</SCRIPT>
<SCRIPT language=javascript>
function openwinabout(wname)
{
window.open('' , wname ,"width=700,height=450,top=0,left=0,location=no,menubar=yes,scrollbars=yes,resizable=yes,status=no,toolbar=NO")
}
function about()
{
window.showModalDialog("about.htm","","dialogWidth:700px;dialogHeight:500px;scroll:no;status:no;help:no");
}
</SCRIPT>
<html></html>
<html></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-cn">
<style type="text/css">
<!--
table { font-size: 9pt}
td { font-size: 9pt}
a:link {color:#000000;text-decoration: none}
a:visited {color:#000000;text-decoration: none}
a:active {color:#000000;text-decoration: none}
a:hover {color:red;text-decoration: none}
-->
</style>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<script language="JavaScript">
<!-- //自动回车功能支持
var i;
var m;
i=0;
m=109;
document.onkeydown=keyCortrol; /* 定义键盘按下时执行的函数 */
if(document.layers) document.captureEvents(Event.KEYDOWN); /* Netscape需要捕获键盘事件 */
function keyCortrol(e)
{ /* 本参数在Netscape中用以传递被按下的键 */
var keychar;
/* 在IE4中用“event.keyCode”来得到被按下的键的值(内码),而在NC4中用的是“e.which” */
if(document.all) keychar=String.fromCharCode(event.keyCode);
if(document.layers) keychar=String.fromCharCode(e.which);
if (keychar=='(') //表示按下的是“向下键”
{i=i+1;
if (i==m) {document.form1.submit();return false;}
document.form1.cj[i].focus();
return false;
}
if (keychar=='\r') //表示按下的是“回车键”
{i=i+1;
if (i==m) {document.form1.submit();return false;}
document.form1.cj[i].focus();
return false;
}
if (keychar=='&') //表示按下的是“向上键”
{
i=i-1;
if (i<0) i=0;
if (i==m) {document.form1.submit();return false;}
document.form1.cj[i].focus();
return false;
}
}
//-->
</script>
<body bgcolor="#D6D3CE" text="#000000" link="#000000" topmargin="0" leftmargin="0">
<div align="center" style="width: 992; height: 294"><center>
<table border="1" width="500" height="242" cellspacing="0" bordercolorlight="#848284" bordercolordark="#FFFFFF" >
<tr>
<form method="POST" action="xiugaikecheng.asp" name="xiugaikecheng">
<center>
</form></tr>
<form method="post" action="cjguanli.asp" id=form1 name=form1>
<input name="keys" type="hidden" value="addcj_end">
<input name="BJBH" type="hidden" value="04110101551">
<input name="kcm" type="hidden" value="新时期文学">
<input name="kch" type="hidden" value="10111029 ">
<tr>
<td align="center" colspan="2" width="217" height="21">
<marquee style="color: #808080; font-size: 10pt" width="217" height="13">说明:缓考.补考.再考.重修成绩在『修改』中添加。学习成绩只能由0~9之间100以内的数字或者A.B.C.D.E.组成;其中A--优秀,B--良好,C--一般,D--及格,E--不及格。&--缓考,*--补考,#--再考,@--重修。成绩的标准格式为:最高分不能超过150分,成绩只能由数字0~9或A.B.C.D.E.+.-组成,请您仔细检查!格式演示为:0~150,A,D,E,A+,A-,B75,C66,B120,A99,A150,A100。</marquee>
</td>
<td width="184" align="center" height="21">课程名:</td>
<td align="center" width="85" height="21"><u>『新时期文学』</u></td>
</tr>
<tr>
<td width="31" align="center" height="23"> </td>
<td width="182" align="center" height="23">学号</td>
<td width="184" align="center" height="23">姓名</td>
<td width="85" align="center" height="23">正考成绩</td>
</tr>
<input name="xuehao" type="hidden" value="041101011162 ">
<input name="xingming" type="hidden" value="陈创柏 ">
<tr>
<td width="31" align="center" height="35"> </td>
<td width="182" align="center" bgcolor="#FFFFFF" height="35"> 041101011163 </td>
<td width="184" align="center" bgcolor="#FFFFFF" height="35"> 吴建标 </td>
<td width="85" align="center" bgcolor="#FFFFFF" height="35"><INPUT type="text" id=text1 name="cj" size="10" onFocus="javascript:this.focus();this.select();" value= ></td>
</tr>
<input name="xuehao" type="hidden" value="041101011163 ">
<input name="xingming" type="hidden" value="吴建标 ">
<tr>
<td width="31" align="center" height="35"> </td>
<td width="182" align="center" bgcolor="#FFFFFF" height="35"> 041101011164 </td>
<td width="184" align="center" bgcolor="#FFFFFF" height="35"> 姚艳章 </td>
<td width="85" align="center" bgcolor="#FFFFFF" height="35"><INPUT type="text" id=text1 name="cj" size="10" onFocus="javascript:this.focus();this.select();" value= ></td>
</tr>
<input name="xuehao" type="hidden" value="041101011164 ">
<input name="xingming" type="hidden" value="姚艳章 ">
<tr>
<td width="31" align="center" height="35"> </td>
<td width="182" align="center" bgcolor="#FFFFFF" height="35"> 041101011165 </td>
<td width="184" align="center" bgcolor="#FFFFFF" height="35"> 黎寿云 </td>
<td width="85" align="center" bgcolor="#FFFFFF" height="35"><INPUT type="text" id=text1 name="cj" size="10" onFocus="javascript:this.focus();this.select();" value= ></td>
</tr>
<input name="xuehao" type="hidden" value="041101011165 ">
<input name="xingming" type="hidden" value="黎寿云 ">
<tr>
<td width="494" colspan="4" height="38">
<center><input type="submit" value=" 确 定 " name="B1"> <input type="reset" value=" 清 除 " name="B2"></center></td>
</tr>
</table></center></FORM></div>
</body>
</html>