<div class="codetitle"> <span><a style="CURSOR: pointer" data="7801" class="copybut" id="copybut7801" onclick="doCopy('code7801')"><u>复제대码</u></a></span> 代码如下:</div> <div class="codebody" id="code7801"> <br><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 전환기//EN"> <br><html> <br><머리> <br><제목> 새 문서 </title> <br><meta name="Generator" content="EditPlus"> <br><meta name="저자" content=""> <br><meta name="키워드" content=""> <br><meta name="Description" content=""> <br></head> <br><본문> <br><br><스크립트 언어="JavaScript"> <br><!-- <BR>function checkselect(objname){ <BR>o = document.getElementById(objname); <BR>t = document.getElementById("출력"); <BR>var 개수=0; <BR>var intvalue=""; <BR>for(i=0;i<o.length;i ){ <BR>if(o.options[i].selected){ <BR>intvalue =o.options[i].value ","; <BR>개수 ; <BR>} <BR>} <BR>t.value=intvalue.substr(0,intvalue.length-1); <BR>경고(개수); <br><br>} <BR>//--> <br></script> <br><name="objsel" size=8 배수 선택> <br><option value="0" selected>请选择 <br><option value="1">测试一 <br><option value="2">测试two <br>< option value="3">测试三 <br><option value="4">测试4 <br><option value="5">测试五 <br></select> <br><input type="button" onclick="checkselect('objsel');" value="출현"> <br>选中的项目:<input type="text" name="output"> <br></body> <br></html> <br> </div>