[CODE]<script language="JavaScript">
function bb(num){
city = new Array();
//读数据库生成数组
city[0]= new Array("","","0");
city[1]= new Array("北京上地路","010-55555555","1");
city[2]= new Array("上海厅纪路","023-66666666","2");
city[3]= new Array("青岛八一路","0514-7777777","3");
form1.tt1.value=city[num][0];
form1.tt2.value=city[num][1];
}
</script>
<style type="text/css">
<!--
body {
text-align:center;
}
#wrap {
width:760px; /* 修改为你的层的宽度 */
margin:0 auto;
text-align:left;
}
-->
</style>
<body>
<form name="form1" method="post" action="">
<!--form1.ss的值用数据库读出-->
选择查找的单位
<select name="ss" onChange="bb(document.form1.ss.options[document.form1.ss.selectedIndex].value)">
<option value="0">请选择</option>
<option value="1">联想</option>
<option value="2">戴耳</option>
<option value="3">海尔</option>
</select>
<br>
地址
<input name="tt1" type="text">
<br>
电话
<input name="tt2" type="text">
</form>[/CODE]