| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 901 人关注过本帖
标题:输入学生考试成绩
只看楼主 加入收藏
nbsyf
Rank: 1
等 级:新手上路
帖 子:382
专家分:0
注 册:2006-7-31
结帖率:90.7%
收藏
 问题点数:0 回复次数:2 
输入学生考试成绩
在Asp中输入学生考试成绩,我现在用的是表单方法,但在输入时总感到不方便,输入下一项数据时需要按Tab键,不如在表格中输入只需可以用上下左右键就可以。在此请教有什么方法可以让在Asp中输入如同在表格中输入那样方便。
搜索更多相关主题的帖子: 学生考试 输入 表格 Tab Asp 
2007-01-18 08:02
tang688
Rank: 5Rank: 5
等 级:贵宾
威 望:16
帖 子:1219
专家分:35
注 册:2004-12-25
收藏
得分:0 

给你个例子吧。

<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--不及格。&amp;--缓考,*--补考,#--再考,@--重修。成绩的标准格式为:最高分不能超过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">&nbsp;</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"> &nbsp;</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"> &nbsp;</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"> &nbsp;</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"> &nbsp;&nbsp;&nbsp; <input type="reset" value=" 清 除 " name="B2"></center></td>
</tr>
</table></center></FORM></div>
</body>
</html>


2007-01-22 14:22
tang688
Rank: 5Rank: 5
等 级:贵宾
威 望:16
帖 子:1219
专家分:35
注 册:2004-12-25
收藏
得分:0 
我只是摘出来一部份,所以有好多的垃圾,你自己分析一下吧/

2007-01-22 14:24
快速回复:输入学生考试成绩
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014220 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved