<SCRIPT type="text/javascript">
function showShortName( )
{
var ctryName=document.myform.BuildingName.value;
var ctryType = new Array( );
ctryType['青莲公寓E楼']=['E楼'];
ctryType['青莲公寓C楼']=['C楼'];
ctryType['青莲公寓D楼'] = ['D楼'];
document.myform.BuildingShortName.options.length=0;
for (var j=0;j<ctryType[ctryName].length;j++)
{
document.myform.BuildingShortName.options.add(new Option(ctryType[ctryName][j], ctryType[ctryName][j]));
}
document.myform.BuildingShortName.selectedIndex=0;
}
</SCRIPT>
<script>
function showNum( )
{
var NumName= document.myform.BuildingShortName.value;
var ctryType = new Array( );
ctryType['E楼']=['E1','E2','E3','E4'];
ctryType['C楼']=['C1','C2','C3'];
ctryType['D楼'] = ['D1','D2','D3'];
document.myform.BuildingNum.options.length=0;
for (var j=0;j<ctryType[NumName].length;j++)
{
document.myform.BuildingNum.options.add(new Option(ctryType[NumName][j], ctryType[NumName][j]));
}
document.myform.BuildingNum.selectedIndex=0;
}
</script>
<FORM action="" method="get" name="myform" >
<td>楼信息管理</td>
</br></br>
楼名:
<select id="BuildingName" name="BuildingName" onChange="showShortName()" >
<option value="">全部</option>
<option value="青莲公寓E楼">青莲公寓E楼</option>
<option value="青莲公寓C楼">青莲公寓C楼</option>
<option value="青莲公寓D楼">青莲公寓D楼</option>
</select> </br> </br></br>
楼简称:
<select id="BuildingShortName" name="BuildingShortName" onChange="showNum()" >
<option value=""> </option>
</select>
</br> </br></br>
楼号:<select id="BuildingNum" name="BuildingNum">
<option value=""> </option>
</select>
</br> </br></br>
</FORM>
谁的浮生乱了流年
相关分类