📄 test1.aspx
字号:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="test1.aspx.vb" Inherits="Online_Exam.test1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>test1</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<script language="JavaScript">
<!--
javascript:window.history.forward(1);
//-->
</script>
<SCRIPT language="JavaScript">
<!--
var maxtime;
function CountDown(){
if(maxtime>=0){
hours=Math.floor (maxtime/3600)
minutes = Math.floor((maxtime%3600)/60);
seconds = Math.floor((maxtime%3600)%60);
document.all("Hour").value=hours;
document.all("Minute").value=minutes;
document.all("Second").value=seconds;
if(maxtime == 4*60) alert('注意,还有5分钟!');
--maxtime;
}
else{
alert("时间到,结束!");
clearInterval(x);
document.getElementById('button2').click();
}
}
function Fun()
{
maxtime="<%= session("time") %>";
x = window.setInterval("CountDown()",1000);
}
//-->
</SCRIPT>
</HEAD>
<body background="images/backgroud/b19.jpg" onload="Fun();" MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<P id="P1"><FONT face="宋体"></FONT><FONT face="宋体"></FONT><FONT face="宋体"></FONT><FONT face="宋体"></FONT><FONT face="宋体"></FONT><FONT face="宋体"></FONT></P>
<P>
</P>
<P> </P>
<asp:panel id="Panel4" style="Z-INDEX: 109; LEFT: 272px; POSITION: absolute; TOP: 168px" runat="server"
Width="152px" Visible="False">三、判断题</asp:panel>
<asp:panel id="Panel5" style="Z-INDEX: 110; LEFT: 288px; POSITION: absolute; TOP: 160px" runat="server"
Width="136px" Visible="False">
<FONT face="宋体">四、排序题</FONT></asp:panel>
<asp:panel id="Panel3" style="Z-INDEX: 111; LEFT: 272px; POSITION: absolute; TOP: 176px" runat="server"
Width="176px" Visible="False">
<FONT face="宋体">二、多项选择题</FONT></asp:panel>
<asp:panel id="Panel2" style="Z-INDEX: 112; LEFT: 272px; POSITION: absolute; TOP: 160px" runat="server"
Width="192px">
<FONT face="宋体">一、单项选择题</FONT></asp:panel>
<P>
<asp:Panel id="Panel6" style="Z-INDEX: 113; LEFT: 0px; POSITION: absolute; TOP: 16px" runat="server"
Width="216px" Height="384px" BackColor="White">
<asp:panel id="Panel1" runat="server" Width="200px" Height="72px"></P>
<P><FONT face="宋体"> 剩余时间</FONT><FONT face="宋体"></P>
<P>
<asp:textbox id="Hour" runat="server" Width="24px" BorderStyle="None"></asp:textbox>
<asp:label id="Label2" runat="server" Font-Size="Medium">:</asp:label>
<asp:textbox id="Minute" runat="server" Width="32px" BorderStyle="None"></asp:textbox>
<asp:label id="Label5" runat="server" Font-Size="Medium">:</asp:label>
<asp:textbox id="Second" runat="server" Width="40px" BorderStyle="None"></asp:textbox></P>
<P></FONT></asp:panel></P>
<P> </P>
<P>
<asp:LinkButton id="LinkButton1" runat="server">单项选择题</asp:LinkButton></P>
<P>
<asp:LinkButton id="LinkButton2" runat="server">多项选择题</asp:LinkButton></P>
<P>
<asp:LinkButton id="LinkButton3" runat="server">判断题</asp:LinkButton></P>
<P></P>
<P>
<asp:LinkButton id="LinkButton4" runat="server">排序题</asp:LinkButton>
</P>
<P></asp:Panel></P>
<asp:button id="Button2" style="Z-INDEX: 114; LEFT: 424px; POSITION: absolute; TOP: 96px" runat="server"
Font-Size="Large" Text="交卷"></asp:button>
<asp:button id="Button1" style="Z-INDEX: 115; LEFT: 248px; POSITION: absolute; TOP: 96px" runat="server"
Font-Size="Large" Text="保存"></asp:button>
<asp:Label id="Label1" style="Z-INDEX: 116; LEFT: 336px; POSITION: absolute; TOP: 32px" runat="server"
Font-Size="X-Large"></asp:Label>
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -