<tr>
<td height="28" colspan="3">求购类别:
<select name="ypxxone_newid" onChange="show(value)">
<option value="" selected>请选择类别</option>
<option value="<%=rs11("SMT_ypxxone_id")%>"><%=rs11("SMT_ypxxone")%></option>
<%rs11.movenext
wend
rs11.Close()
%>
</select>
</td>
</tr><script language="JavaScript">
<!--
var obj=null;
function show(v){
if (td1.style.display == "none") {
if(obj)obj.style.visibility='hidden'
if(obj=document.getElementById(v))obj.style.visibility='visible'
td1.style.display="";}
else{
td1.style.display="none";}
}//-->
</script>
<tr>
<td colspan="3" id="td1" style="display:none ">
<div id="all" style="position:relative; height:200;">
<div id="50" style="position:absolute; top: 0; left:0; visibility: hidden">
<table width="480">
<tr>
<td width="25%" height="20" align="left"><input name="checkbox_x" type="checkbox" style="border:0" value="<%=rs12("SMT_ypxxtwo_id")%>"><%=rs12("SMT_ypxxtwo")%></td>
</tr>
</table>
</div>
<div id="49" style="position:absolute; top: 0; left:0; visibility: hidden">
<table width="480" border="0" cellpadding="0" cellspacing="0" class="font">
<tr align="left">
<td width="25%" height="20" align="left"><input name="checkbox_x" type="checkbox" style="border:0" value="<%=rs13("SMT_ypxxtwo_id")%>"><%=rs13("SMT_ypxxtwo")%></td>
</tr>
</table>
</div>
<div id="48" style="position:absolute; top: 0; left:0; visibility: hidden">
<table width="480" border="0" cellpadding="0" cellspacing="0" class="font">
<tr align="left">
<td width="25%" height="20" align="left"><input name="checkbox_x" type="checkbox" style="border:0" value="<%=rs14("SMT_ypxxtwo_id")%>"><%=rs14("SMT_ypxxtwo")%></td>
</tr>
</table>
</div>
<div id="47" style="position:absolute; top: 0; left:0; visibility: hidden">
<table width="480" border="0" cellpadding="0" cellspacing="0" class="font">
<tr align="left">
<td width="25%" height="20" align="left"><input name="checkbox_x" type="checkbox" style="border:0" value="<%=rs15("SMT_ypxxtwo_id")%>"><%=rs15("SMT_ypxxtwo")%></td>
</tr>
</table>
</div>
<div id="51" style="position:absolute; top: 0; left:0; visibility: hidden">
<table width="480" border="0" cellpadding="0" cellspacing="0" class="font">
<tr align="left">
<td width="25%" height="20" align="left"><input name="checkbox_x" type="checkbox" style="border:0" value="<%=rs16("SMT_ypxxtwo_id")%>"><%=rs16("SMT_ypxxtwo")%></td>
</tr>
</table>
</div>
</div>
</td>
</tr>
怎样通过选择列表的其中一项,显示该内容,并且隐藏其他DIV,初始化时,该TD1是隐藏的。
[此贴子已经被作者于2007-7-28 11:43:42编辑过]