<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "HTTP://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="HTTP://www.w3.org/1999/xhtml">
<head>
<meta HTTP-equiv="Content-Type" content="text/html; charset=big5" />
<title>無標題檔</title>
</head>
<script language="javascript">
function funbt_onclick(obj)
{
//把所有都關閉
for (i=1; i<=10; i++){
obj_name='fun'+i
disp_stats=document.all[obj_name].style.display;
document.all[obj_name].style.display="none"
}
//開啟所需要的部份
for (i=1; i<=obj; i++){
obj_name='fun'+i
disp_stats=document.all[obj_name].style.display;
document.all[obj_name].style.display=""
}
}
</script>
<body>
<table width="200" border="0">
<tr>
<td width="37">數量</td>
<td width="153">
<select name="" onchange="javascript:funbt_onclick(this.value);">
<%
for num=0 to 10
%>
<option value="<%=num%>"><%=num%></option>
<%
next
%>
</select>
</td>
</tr>
<tr>
<td colspan="2">
<%
for i=1 to 10
%>
<div id="fun<%=i%>" style="display:none;">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td><%=i%>:<input name="" type="text" size="5" /></td>
</tr>
</table>
</div>
<%
next
%>
</td>
</tr>
</table>

 

</body>
</html>
arrow
arrow
    全站熱搜

    戮克 發表在 痞客邦 留言(0) 人氣()