<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body onload="c_cpua.value=c_cpu.options[c_cpu.selectedIndex].value">
<div style="position:absolute;">
<select name="c_cpu" style="position:absolute;top:30px; width: 150px; height: 20px; clip: rect(0 180 110 130) " onChange='c_cpua.value=this.options[this.selectedIndex].value'>
<option value="1">1</option>
<option value="2" selected>2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
<input name="c_cpua" type="text" style="position:absolute;top:30px; width: 149px; height: 20px">
</div>
<input type="button" name="Submit" value="结果" onClick="alert(c_cpua.value)">
</body>
</html>
本文地址:http://com.8s8s.com/it/it31414.htm