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

📄 tiankongh.asp

📁 这是用asp做的一个网上考试题库系统
💻 ASP
📖 第 1 页 / 共 2 页
字号:
 <% language=VBscript%>
<%
  if Request.ServerVariables ("query_string")<>"" then
        Session("zsdh")=trim(Request.QueryString ("zsdh"))
        Session("zsdm")=trim(Request.QueryString ("zsdm"))
  
   end if

%>

<html>

<head>
<style>
  .bodyStyle {font-family: "Verdana", "Arial";
              font-size: 10pt;
              color:  #00309c}

  .bodyStyle2 {margin-left:12pt;
              background-image:  url('../djst/share/blue_gradient.jpg');
              background-attachment: fixed;
              color:  #00309c;
              width:532px; font-style:normal; font-variant:normal; font-weight:normal; font-size:10pt; font-family:Verdana, Arial}

  A:HOVER {
           text-decoration: none }

  A:LINK { text-decoration: none }

  A:ACTIVE { 
             text-decoration: none }

  A:VISITED { text-decoration: none }

  TABLE   {margin-right: 20pt;
           font-size: 10pt;
           font-family: "Verdana", "Arial"}

  .active  {font-weight: bold;
            color: #00309c}
  .active2 {font-weight: bold;
            color: #405040}
  .visited {font-weight: normal;
            color: #405040 }

  .1      {margin-left: 0pt}
  .2      {margin-left: 16pt;
           width: 100pt}
  .3      {margin-left: 32pt;
           width: 90pt}
  .4      {margin-left: 45pt;
           width: 50pt}

</style>
 
<script language="JavaScript">
<!--
 var arr= new Array(5);
    arr[0]="答案一:";
    arr[1]="答案二:";
    arr[2]="答案三:";
    arr[3]="答案四:";
    arr[4]="答案五:";
    
var a;
a=0;
function AddTiankong(){
	if (a<5){
		a=a+1;
		form1.shtnr.value=form1.shtnr.value + '________';
	} else alert('您已经加入了五个空,最多只允许添加五个空!您可以考虑重新填写填空项');
}

function ResetTiankong(){
	form1.shtnr.value='';
	a=0;
}

function checkDaAn(){
var i,submit;
	submit=true;
	 
	if ((document.all.form1.KID.value=="")||(document.form1.da1.value=="")||(document.form1.shtnr .value =="")) {
		alert('请检查您的试题内容、知识点和答案是否写全呢!');
		return false;
	}
	for(i=1;(i<=a)&&(('da'+i)!=document.form1.last.name);i++){
		str='da'+ i;
		if (document.form1[str].value=='') submit=false;
	 
	}
	if((document.form1 [document.form1.last.name].value=="")||(('da'+a)!= document.form1.last.name)) submit=false;
	 
	if (submit==false) alert('题目与答案的数量不一致!')
	 else document.form1 .submit ()
}
function addanswer()
{
var i,f;
if(a!=0)
{
for(i=1;i<=a;i++){
		str='da'+ i;
		if (document.form1 .last.name==str) break ;
	}
if (i<a)
{
  str1=  " <table width=\"75%\" border=\"0\" id=sttable> "
  for(f=1;f<=i;f++){
   str1+="<tr><td><div align=\"center\">"+arr[f-1]+
          "<input type=\"text\"  name=\"da"+f+"\" maxlength=\"50\" size=\"30\"class=\"input\" value=\""+document.form1 ["da"+f].value+"\" style=\"background-color: #FFFFFF; border-style: solid; border-width: 1 \">"+
         "</div></td></tr>";
      }
  str1+="<tr><td><div align=\"center\">"+arr[f-1]+
          "<input type=\"text\" id=\"last\"  name=\"da"+f+"\" maxlength=\"50\" size=\"30\"class=\"input\"style=\"background-color: #FFFFFF; border-style: solid; border-width: 1 \">"+
         "</div></td></tr></table>"
  sttable.outerHTML =str1; 

}
}	
}
function delanswer()
{
var i,f;
for(i=1;i<=a;i++){
		str='da'+ i;
		if (document.form1 .last.name==str) break ;
	}
if(i>1){
	str1=  " <table width=\"75%\" border=\"0\" id=sttable> "
  for(f=1;f<i-1;f++){
   str1+="<tr><td><div align=\"center\">"+arr[f-1]+
          "<input type=\"text\"  name=\"da"+f+"\" maxlength=\"50\" size=\"30\"class=\"input\" value=\""+document.form1 ["da"+f].value+"\"style=\"background-color: #FFFFFF; border-style: solid; border-width: 1 \">"+
        "</div></td></tr>";
  }
  str1+="<tr><td><div align=\"center\">"+arr[f-1]+
          "<input type=\"text\" id=\"last\"  name=\"da"+f+"\" maxlength=\"50\" size=\"30\"class=\"input\" value=\""+document.form1 ["da"+f].value+"\"style=\"background-color: #FFFFFF; border-style: solid; border-width: 1 \">"+
         "</div></td></tr></table>"
  sttable.outerHTML =str1; 
 
 }  
} 
function dxonmouseover()
{
  dx.style.color="#00FFFF";
}
function dxonmouseout()
{
  dx.style.color="#CCCCFF"
}
function daonmouseover()
{
  dan.style.color="#00FFFF";
}
function daonmouseout()
{
  dan.style.color="#CCCCFF"
}
function pdonmouseover()
{
  pd.style.color="#00FFFF";
}
function pdonmouseout()
{
  pd.style.color="#CCCCFF"
}
function fxonmouseover()
{
  fx.style.color="#00FFFF";
}
function fxonmouseout()
{
  fx.style.color="#CCCCFF"
}
-->
</script>
</head>



 
 
 <body class=bodyStyle2 bgcolor=#FFFFCC>
<%if request.QueryString("Added")="" then %>

<form method="post" action="./tkcl.asp" ENCTYPE="multipart/form-data" name="form1" >
  <table width="48%" border="0" bgcolor="#FF6666" bordercolor="#FFFFFF">
    <tr bgcolor="#FF3333"> 
      <td width="15%" nowrap bgcolor="#FF9999"> <div onmouseover="daonmouseover() " onmouseout="daonmouseout()"> <a href="./da.asp"><font id=dan color="#CCCCFF">单项选择题</font></a></div></td>
      <td width="18%" nowrap bgcolor="#FF9999"> 
        <div onmouseover="dxonmouseover() " onmouseout="dxonmouseout()"><a href="../tjst/dux.asp"><font id=dx  color="#CCCCFF">多项选择题</font></a></div>
      </td>
      <td width="11%" nowrap bgcolor="#FF9999"> <a href="../tjst/tiankong.asp"><font id=tk color="#00FFFF">填空题</font></a>
      </td>
      <td width="9%" nowrap bgcolor="#FF9999"> 
        <div onmouseover="pdonmouseover() " onmouseout="pdonmouseout()"><a href="../tjst/pd.asp"><font id=pd color="#CCCCFF">判断题</font></a></div>
      </td>
      <td width="11%" nowrap bgcolor="#FF9999"> 
        <div onmouseover="fxonmouseover() " onmouseout="fxonmouseout()"><a href="../tjst/fx.asp"><font id=fx color="#CCCCFF">分析题 
          </font></a></div>
      </td>
    </tr>
  </table>
  <%else%>
  <form method="post" action="./tkcl.asp?Added=<%=request.QueryString("Added")%>" ENCTYPE="multipart/form-data" name="form1" >
<% end if%>
 
<div align="center">  
<table width="100%" border="0" bgcolor="#FF9999">
    <tr bgcolor="#FF9999"> 
      <td nowrap height="25"> 
        <h1> <font size="2" color="#3333FF">填空:(注意:黑体字项必须填写)</font></h1>
      </td>

⌨️ 快捷键说明

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