[CODE]<script language="javascript">
function Page_Submit(idx)
{
document.form1.SubBtn.value=idx;
document.form1.submit();
}
function selCls_Change()
{
var tSelCls=document.form1.selCls;
var selVal=tSelCls.options[tSelCls.selectedIndex].value;
document.form1.select0.value=selVal;
}
function selSpeeds_Change()
{
var tSelSpeeds=document.form1.selSpeeds;
var selVal=tSelSpeeds.options[tSelSpeeds.selectedIndex].value;
document.form1.select4.value=selVal;
}
</script>
<form id="form1" name="form1" method="post" action="list.asp">
<table width="882" border="1" cellpadding="0" cellspacing="0" bordercolor="#99FFFF">
<tr bordercolor="#FFFFFF" bgcolor="#FFFFCC">
<th colspan="6" scope="col"><div align="left">
<p class="STYLE1">请选择您想查询的内容:</p>
</div></th>
</tr>
<tr bgcolor="#CCFFCC">
<td width="72">类 型:</td>
<td width="200"><select name="selCls" onChange="selCls_Change();" size="1">
<option value="台式机" selected >台式机</option>
<option value="笔记本">笔记本</option>
<option value="服务器">服务器</option>
</select>
<input type="hidden" name="select0" >
</td>
<td width="60"><input type="submit" name="Submit" value="查询" onClick="Page_Submit(1);"/></td>
<td width="249">主 频:</td>
<td width="115"><select name="selSpeeds" onChange="selSpeeds_Change();" size="1">
<option selected >1GHZ-1.8GHZ</option>
<option>1.8GHZ-3GHZ</option>
<option>3GHZ以上</option>
</select>
<input type="hidden" name="select4" onChange="select4_Change();" >
</td>
<td width="172"><input type="submit" name="Submit4" value="查询" onClick="Page_Submit(2);"/></td>
</table>[/CODE]
这样试试。
function Page_Submit(idx)
{
document.form1.SubBtn.value=idx;
document.form1.submit();
}
function selCls_Change()
{
var tSelCls=document.form1.selCls;
var selVal=tSelCls.options[tSelCls.selectedIndex].value;
document.form1.select0.value=selVal;
}
function selSpeeds_Change()
{
var tSelSpeeds=document.form1.selSpeeds;
var selVal=tSelSpeeds.options[tSelSpeeds.selectedIndex].value;
document.form1.select4.value=selVal;
}
</script>
<form id="form1" name="form1" method="post" action="list.asp">
<table width="882" border="1" cellpadding="0" cellspacing="0" bordercolor="#99FFFF">
<tr bordercolor="#FFFFFF" bgcolor="#FFFFCC">
<th colspan="6" scope="col"><div align="left">
<p class="STYLE1">请选择您想查询的内容:</p>
</div></th>
</tr>
<tr bgcolor="#CCFFCC">
<td width="72">类 型:</td>
<td width="200"><select name="selCls" onChange="selCls_Change();" size="1">
<option value="台式机" selected >台式机</option>
<option value="笔记本">笔记本</option>
<option value="服务器">服务器</option>
</select>
<input type="hidden" name="select0" >
</td>
<td width="60"><input type="submit" name="Submit" value="查询" onClick="Page_Submit(1);"/></td>
<td width="249">主 频:</td>
<td width="115"><select name="selSpeeds" onChange="selSpeeds_Change();" size="1">
<option selected >1GHZ-1.8GHZ</option>
<option>1.8GHZ-3GHZ</option>
<option>3GHZ以上</option>
</select>
<input type="hidden" name="select4" onChange="select4_Change();" >
</td>
<td width="172"><input type="submit" name="Submit4" value="查询" onClick="Page_Submit(2);"/></td>
</table>[/CODE]
这样试试。