CSDN博客

img caaclxf

可以输入的下拉菜单

发表于2004/10/13 8:49:00  561人阅读

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

相关文章推荐

img
取 消
img