用select的事件仍然不行:
<script language="javascript">
<!--
with(document.form1)
{
for(i=0;i<cif.options.length;i++)
{
if(cif.options[i].value=="<%=request.form("cif"
%>"
{cif.options[i].selected=true;break;}
}
}
//-->
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<% cif=request("cif"
select case cif
case "name"
select1=selected
case "company"
select2=selected
case "factory"
select3=selected
end select
%>
<form name="form1" method="post" action="">
<select name="cif" id="cif" onchange="javascript:submit()">
<option value="name" <%=select1%>>名称</option>
<option value="company" <%=select2%>>公司</option>
<option value="factory" <%=select3%>>工厂</option>
</select>
<input type="submit" name="Submit" value="提交">
</form>