<html><head><title>S_ChaXun</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../oa.css" rel=stylesheet>
</head>
<script language="JavaScript">
<!--
if (window.Event)
document.captureEvents(Event.MOUSEUP);
function nocontextmenu()
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
function norightclick(e)
{
if (window.Event)
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}
document.oncontextmenu = nocontextmenu; // for IE5+
document.onmousedown = norightclick; // for all others
//-->
</script>
<BODY bgColor=#ffffff leftMargin=0
style="BACKGROUND-ATTACHMENT: scroll; BACKGROUND-IMAGE: url(../images/main_bg.gif); BACKGROUND-POSITION: left bottom; BACKGROUND-REPEAT: no-repeat"
topMargin=0>
<form method="POST" action="" name="myform" >
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td class="heading" bgcolor="000000" height=20 width=120 >
<div align="center"></div>
</td>
<td bgcolor="#000000" colspan="4" >
<div align="center"></div>
</td>
</tr>
<tr>
<td valign=top width=120> </td>
<td >
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td bgcolor="#efefef" colspan="4" >
<div align="center"><font color="#333333" class=heading>查 询</font></div>
</td>
</tr>
<tr>
<td width="25%" bgcolor="efefef">
<input type="checkbox" name="checkbox" value="checkbox" onClick="expandIt(el<%= elno %>); return false;">
<a href="S_ChaXun.asp?s=1" onClick="expandIt(el<%= elno %>); return false;">fgfgfg
</a>
<input type="radio" name="Basic" value="1" onClick="expandIt(el<%= elno %>); return false;" size="1">
</td>
<td width="25%" bgcolor="efefef" >
<input type="checkbox" name="checkbox2" value="checkbox"> <%=s%>
</td>
<td width="25%" bgcolor="efefef" >
<input type="checkbox" name="checkbox3" value="checkbox">
</td>
<td width="25%" bgcolor="efefef" >
<input type="checkbox" name="checkbox4" value="checkbox">
</td>
</tr>
<tr>
<td width="23%" class="t1" bgcolor="#efefef">
<select name="XDUnit" onChange="changeunit(document.myform.XDUnit.value)" size="1">
<option value="其它">其它</option>
<option value="其他1" >其他1</option>
</select>
</td>
<script language=javascript>
function changeunit(location)
{
var Unit=location;
//document.all.myform.WeiTuoUnit.value=document.all.myform.XDUnit.value;
if(Unit=="其它") //显示文本框给用户输入信息
{
document.all.myform.myunit.style.display="block";
}
else{
document.all.myform.myunit.style.display="none";
}
}
</script>
<td bgcolor="efefef">
<input id="myunit" type="text" name="XDUnit1" size=25 style="display:none">
</td>
<td bgcolor="#efefef"> </td>
<td bgcolor="efefef"> </td>
</tr>
</table>
<table id="myunit" name="XDUnit1" style="display:none" width="100%" border="1" cellspacing="0" cellpadding="0" height="20" bgcolor="#ffffff" >
<tr>
<td width="21%" class="t1" bgcolor="#efefef">
<div align="center">仪器编号</div>
</td>
<td width="29%">
<input type="text" name="ID" size=30>
</td>
<td width="22%" class="t1" bgcolor="#efefef">
<div align="center">仪器名称</div>
</td>
<td width="28%">
<input type="text" name="Name" size=30>
</td>
</tr>
<tr>
<td width="21%" class="t1" bgcolor="#efefef">
<div align="center">仪器型号</div>
</td>
<td width="29%">
<input type="text" name="Type" size=30>
</td>
<td width="22%" class="t1" bgcolor="#efefef">
<div align="center">价格</div>
</td>
<td width="28%">
<input type="text" name="Price" size=30>
</td>
</tr>
<tr>
<td width="21%" class="t1" bgcolor="#efefef">
<div align="center">购买时间</div>
</td>
<td width="29%">
<input type="text" name="txtYear1" size=4>
年
<input type="text" name="txtMonth1" size=2>
月 到
<input type="text" name="txtYear2" size=4>
年
<input type="text" name="txtMonth2" size=2>
月 之间 </td>
<td width="22%" class="t1" bgcolor="#efefef"> </td>
<td width="28%"> </td>
</tr>
</table>
</tr>
</table>
</form>
</body></html>
错误找出来了,问题出在这里,
document.all.myform.myunit.style.display="block";
应该改成document.all.myunit.style.display="block";