default.htm

来自「上机考试系统,可以做与sql数据库相关知识的测试」· HTM 代码 · 共 28 行

HTM
28
字号
<html>
<head><title>机试登录窗口</title>
<script language="vbscript">
 sub b1_onclick()
 dim flag
  flag=1
  if f1.xh.value="" or len(f1.xh.value)<>10 then
    msgbox "请填上你的正确学号,完整的长度应该为10位,比如 05141711XX "
    flag=0
  end if
  if f1.xm.value="" then
    msgbox "请写上你的名字"
    flag=0
  end if
  if flag<>0 then f1.submit
 end sub
</script>
</head>
<body bgcolor=#d0d0d0><center>
<form action=show.asp method=get name=f1>
 <table border=1 bgcolor=#c0c0c0>
  <tr><th>学 号</th><td><input type=text name=xh></td></tr>
  <tr><th>姓 名</th><td><input type=text name=xm></td></tr>
  <tr><th>→</th><td><input type=button value="开始抽题考试" name=b1><input type=reset></td></tr>
 </table>
</form>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?