怎样用键盘上的上移,下移,左移,右移键来控制光标的上下左右的移动?
我用ASP动态生成了一个表格,表格的每一单元格都是用文本表单生成的,我想实现Excel那种能用键盘上移,下移,左移,右移键来控制光标的上下左右的移动,可是在我这表里上下左右移动只能用鼠标控制,这样操作很不方便,哪位高手能出来帮忙,谢!!!
相关代码如下:
<form name= "theform2 " method= "post " action= "inputok.asp " onSubmit= "return check2() ">
<% for i=1 to request.form( "num ") %>
<table width= "613 " border= "0 " cellspacing= "0 " cellpadding= "0 " height= "8 " align= "center ">
<tr>
<td width= "77 " height= "6 ">
<div align= "left "> <font size= "2 ">
<input type= "text " name= "testnumber <%=i%> " size= "11 " style= "border: 1pt solid #EEEEEE;background-color:transparent " maxlength= "15 ">
</font> </div>
</td>
</tr>
</table>
<% next %>
<input type= "hidden " name= "num " value= " <%=request.form( "num ")%> ">
<input type= "hidden " name= "grade " value= " <%=request.querystring( "grade ")%> ">
<input type= "hidden " name= "class " value= " <%=request.querystring( "class ")%> ">
<div align= "center "> <br>
<input type= "submit " name= "Submit2 " value= " 保存数据 " style= "border: 1pt solid #EEEEEE ">
<input type= "re