<script language="javascript">
<!--
var subcat = new Array();
subcat[0] = new Array('1','中国')
subcat[1] = new Array('2','香港')
function changeselect1(locationid)
{
document.form1.bianhao.length = 0; //初始化下拉列表
for (i=0; i<subcat.length; i++)
{
if (subcat[i][0] == locationid) //[0] [1] 第一列 第二列
{document.form1.bianhao.options[document.form1.bianhao.length] = new Option(subcat[i][1], subcat[i][2]);} //建立option
}
}
//-->
</script>
时间: 2024-10-03 15:21:10