高手帮看看js代码为什么不能实现,谢了!
<%@ Page Language="c#" Inherits="EasyExam.RubricManag.NewTest" CodeFile="NewTest.aspx.cs" %>
<html>
<head>
<title></title>
<meta content="Microsoft FrontPage 6.0" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<script language="javascript">
function TestTypeNameChange() {
var i;
var strTestTypeName = Form1.DDLTestTypeName.value;
document.all("OptionContent").style.display = "none";
document.all("PlSelect").style.display = "none";
document.all("PlJudge").style.display = "none";
document.all("PlOther").style.display = "none";
document.all("PlType").style.display = "none";
document.all("PlOperate").style.display = "none";
if (strTestTypeName.indexOf("单选类") > 0) {
document.all("OptionContent").style.display = "block";
document.all("LabStandardAnswer").innerHTML = "试题选项:";
document.all("PlSelect").style.display = "block";
for (i = 1; i <= 6; i++) {
document.all("PlOneSelect" + i).style.display = "block";
document.all("PlMultiSelect" + i).style.display = "none";
}
document.all("txtTestMark").value = "2";
}
if (strTestTypeName.indexOf("多选类") > 0) {
document.all("OptionContent").style.display = "block";
document.all("LabStandardAnswer").innerHTML = "试题选项:";