⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testpaper2.aspx

📁 本系统实现了网上考试的目的
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestPaper2.aspx.cs" Inherits="TestPaper2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<script language="javascript">  
             function  f1()  
             {  
                     document.all(  "div1").style.display  =  '';  
                     document.all(  "div2").style.display  =  'none';
                     document.all(  "div3").style.display  =  'none';
                     document.all(  "div4").style.display  =  'none';

             }  
             function  f2()  
             {  
                     document.all(  "div1").style.display  =  'none';  
                     document.all(  "div2").style.display  =  ''; 
                     document.all(  "div3").style.display  =  'none';
                     document.all(  "div4").style.display  =  'none';

             }
             function  f3()
             {  
                     document.all(  "div1").style.display  =  'none';  
                     document.all(  "div2").style.display  =  'none';
                     document.all(  "div3").style.display  =  '';
                     document.all(  "div4").style.display  =  'none';

                 
              }
              function f4()
              {
                     document.all(  "div1").style.display  =  'none';  
                     document.all(  "div2").style.display  =  'none';
                     document.all(  "div3").style.display  =  'none';
                     document.all(  "div4").style.display  =  '';
                  
              }

              <!-- Hide
var timerID = null
var timerRunning = false
function MakeArray(size) {
    this.length = size;
    for(var i = 1; i <= size; i++)
      {
        this[i] = "";
      }
  return this;
}
function stopclock (){
    if(timerRunning)
    clearTimeout(timerID);
    timerRunning = false
}
function showtime (){
  var now = new Date();
  var year = now.getYear();
  var month = now.getMonth() + 1;
  var date = now.getDate();
  var hours = now.getHours();
  var minutes = now.getMinutes();
  var seconds = now.getSeconds();
  var day = now.getDay();
  Day = new MakeArray(7);
  Day[0]="星期天";
  Day[1]="星期一";
  Day[2]="星期二";
  Day[3]="星期三";
  Day[4]="星期四";
  Day[5]="星期五";
  Day[6]="星期六";
  var timeValue = "";
  timeValue += year + "年";
  timeValue += ((month < 10) ? "0" : "") + month + "月";
  timeValue += date + "日  ";
  timeValue += (Day[day]) + "  ";
  timeValue += ((hours <= 12) ? hours : hours - 12);
  timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
  timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
  document.all.clock.innerText = timeValue;
  timerID = setTimeout("showtime()",1000);
  timerRunning = true
}
function startclock () {
  stopclock();
  showtime()
}

//-->
</script>
    <title>系统读取升级等待界面</title>
    <meta http-equiv="refresh" content="3;url=TestPaper3.aspx" />
</head>
<body style="font-size: 12pt">
    <form id="form1" runat="server">
    <div>
        <table border="0" width="1000">
            <tr>
                <td background="images/logo.jpg" style="height: 183px" width="1000">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="center" height="300">
                    <table align="center" bgcolor="#99ff99" border="1" bordercolor="#0066cc" width="1000">
                        <tr bgcolor="#ffff33">
                            <td id="clock" background="images/10.jpg" style="width: 307px; height: 6px" valign="bottom">
                            </td>
                            <td background="images/10.jpg" style="height: 6px" valign="bottom">
                                <p align="right">
                                    欢迎使用在线考试系统&nbsp;
                                </p>
                            </td>
                        </tr>
                        <tr bgcolor="#ffff33">
                            <td bgcolor="#ffffff" style="height: 555px" colspan="2" rowspan="3">
                                <font face="宋体"><span style="font-size: 14pt">系统正在读取试卷,可能需要一定的时间,请耐心等待!!!......</span></font></td>
                        </tr>
                        <tr bgcolor="#99ccff" style="color: #000000; font-family: Times New Roman">
                        </tr>
                        <tr bgcolor="#ffcc33" style="font-family: Times New Roman">
                        </tr>
                        <tr style="font-family: Times New Roman">
                            <td align="center" bgcolor="#ffffff" colspan="2" style="height: 8px">
                                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                &nbsp; &nbsp;<input name="bt1" onclick="f1()" type="button" value="第1页" />
                                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;
                                <input name="bt2" onclick="f2()" type="button" value="第2页" />
                                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;
                                <input id="bt3" onclick="f3()" type="button" value="第3页" />
                                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;
                                <input id="bt4" onclick="f4()" type="button" value="第4页" />
                            </td>
                        </tr>
                        <tr style="font-family: Times New Roman">
                            <td bgcolor="#ffffff" colspan="2" height="600">
                                <div id="div2" style="display: none; text-align: left">
                                    <asp:Panel ID="Panel2" runat="server" Style="text-align: left">
                                        <font face="宋体"></font>
                                    </asp:Panel>
                                </div>
                                <div id="div1" style="text-align: left">
                                    <font face="宋体"></font>
                                    <asp:Panel ID="Panel1" runat="server">
                                        <font face="宋体">一.选择题(共70道,一题一分,共70分)</font>
                                    </asp:Panel>
                                </div>
                                <div id="div3" style="display: none; text-align: left">
                                    <font face="宋体"></font>
                                    <asp:Panel ID="Panel3" runat="server">
                                        <font face="宋体">二.完型填空(共20个题,一题一<span style="font-family: Times New Roman">分</span>,共20分)</font>
                                    </asp:Panel>
                                    &nbsp;</div>
                                <div id="div4" style="display: none; text-align: left">
                                    <asp:Panel ID="Panel4" runat="server">
                                        <font face="宋体">三.阅读题(共5个题,一题二分,共10分)</font>
                                    </asp:Panel>
                                    &nbsp;</div>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" bgcolor="#ffffff" colspan="2">
                                <a href="#top">返回顶端</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<input
                                    name="bt1" onclick="f1()" type="button" value="第1页" />
                                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;
                                <input name="bt2" onclick="f2()" type="button" value="第2页" />
                                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;
                                <input id="Button1" onclick="f3()" type="button" value="第3页" />
                                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;
                                <input id="Button2" onclick="f4()" type="button" value="第4页" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="200">
                    <font face="宋体"></font>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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