2005/06/06 | 可以输入的下拉菜单
类别(WEB相关) | 评论(1) | 阅读(167) | 发表于 23:03
可以输入的下拉菜单

<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>
0

评论Comments