| 发表于:2007-08-25 11:09:116楼 得分:0 |
<script> var myname=[ "txtkc ", "txtfj ", "txtcx ", "txtyb ", "txtss ", "txtgl ", "txtcz ", "txttp ", "txtkx ", "txtfy ", "txtwl ", "txtbl ", "txtpz ", "txthp ", "txtljbqj ", "txtljbzq ", "txtsg ", "txtbp ", "txtgzw ", "txtqt ", "txtqh ", "txtgbj ", "txtsgsh ", "txtbz ", "txtaq ", "txtbx ", "txtkb ", "txthgyb ", "txthgyz "]; var nowfocus=1; var myline=0; document.all.txtkc1.focus(); function ceshi(tt) { if(tt==37) { if(nowfocus <2) { nowfocus=10; if (myline <2) myline=myline; else myline-=1; } else nowfocus-=1; var t=document.getelementbyid(myname[myline]+nowfocus); t.focus(); } else if(tt==38) { if(myline <1) myline=myline; else myline-=1; var t=document.getelementbyid(myname[myline]+nowfocus); t.focus(); } else if(tt==39) { if(nowfocus> 9) { nowfocus=1; if (myline> 27) myline=myline; else myline+=1; } else nowfocus+=1; var t=document.getelementbyid(myname[myline]+nowfocus); t.focus(); } else if(tt==40) { if(myline> 27) myline=myline; else myline+=1; var t=document.getelementbyid(myname[myline]+nowfocus); t.focus(); } } </script> | | |
|