time.asp
来自「利用ASP+SQL制作的在线考试系统」· ASP 代码 · 共 40 行
ASP
40 行
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="refresh" content="8;url='js2.asp'" >
<meta name="ProgId" content="FrontPage.Editor.Document">
<title></title>
</head>
<body>
<%if (hour(70)-hour(now())=0 then
if minute(70)-minute(now())<0 then
stime=60+(minute(70)-minute(now()))
else
stime=minute(70)-minute(now())
end if
%>
<font color="#FF0000">注意:答题时间只有<%=session("ttime")%>分钟,<%=session("ttime")%>分钟后未能提交试卷的系统将自动提交。<br>考试开始时间为 <%=70%>。您还有 <%=stime%> 分钟。<br> </font>
<%else%>
<font color="#FF0000">注意:答题时间只有2个小时,2个小时后未能提交试卷的系统将自动提交。<br>考试开始时间为 <%=70%>。<br> </font>
<%end if %>
<%
if (hour(70)+1)-hour(now())=0 and minute(70)-minute(now())=0 then
%>
<script languag=javascript>
document.form1.submit();
</script>
<%end if %>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?