<BODY><%
response.write "<table border=1>"
dim aa(3,4)
for i=1 to 3
response.write "<tr>"
for j=1 to 4
aa(i-1,j-1)=i*j
response.write "<td>"&aa(i-1,j-1)&"</td>"
next
next
response.write "</table>"
%>
<select id="sel" onChange="setCheckBox(this);">
<%
for i=0 to 2
response.write "<option value="&aa(i,0)&">"&aa(i,0)&"</option>"
next
%>
</select>
<input type="checkbox" id="chk1">xxxx
<input type="checkbox" id="chk2">yyyy
<input type="checkbox" id="chk3">zzzz
<SCRIPT LANGUAGE="JavaScript">
<!--
function setCheckBox(t)
{
//Õâ¸öµØ·½×Ô¼º°´ÒªÇó¸Äд¾ÍÐÐÁË¡£
if(t.value==2&&<%=aa(1,1)%>==4)
{
chk1.checked=true;
chk2.checked=false;
chk3.checked=false;
}
//.......
}
//-->
</SCRIPT>
</BODY>
response.write "<table border=1>"
dim aa(3,4)
for i=1 to 3
response.write "<tr>"
for j=1 to 4
aa(i-1,j-1)=i*j
response.write "<td>"&aa(i-1,j-1)&"</td>"
next
next
response.write "</table>"
%>
<select id="sel" onChange="setCheckBox(this);">
<%
for i=0 to 2
response.write "<option value="&aa(i,0)&">"&aa(i,0)&"</option>"
next
%>
</select>
<input type="checkbox" id="chk1">xxxx
<input type="checkbox" id="chk2">yyyy
<input type="checkbox" id="chk3">zzzz
<SCRIPT LANGUAGE="JavaScript">
<!--
function setCheckBox(t)
{
//Õâ¸öµØ·½×Ô¼º°´ÒªÇó¸Äд¾ÍÐÐÁË¡£
if(t.value==2&&<%=aa(1,1)%>==4)
{
chk1.checked=true;
chk2.checked=false;
chk3.checked=false;
}
//.......
}
//-->
</SCRIPT>
</BODY>
<div id="D1" style="display:none">
..</div>
<div id="D2" style="display:none">
..</div>
<div id="D3" style="display:none">
..</div>
<select onchange="
if (this.DIV!=null) this.DIV.style.display='none';
this.DIV=this.options[this.selectedIndex].DIV;
this.DIV.style.display='in-line';"
>
<option >请选择</option>
<option value='1' onmouseover="this.DIV=D1">1</option>
<option value='1' onmouseover="this.DIV=D2">1</option>
<option value='1' onmouseover="this.DIV=D3">1</option>
</select>
http://expert.csdn.net/Expert/topic/723/723099.xml?temp=.423855