<div class="codetitle"> <span><a style="CURSOR: pointer" data="62040" class="copybut" id="copybut62040" onclick="doCopy('code62040')"><u>复主代码</u></a></span> 代码如下:</div> <div class="codebody" id="code62040"> <br><HTML> <br> <HEAD> <br> <TITLE> 새 문서 </TITLE> <br> <META NAME="생성기" CONTENT="EditPlus"> <br> <META NAME="저자" CONTENT=""> <br> <META NAME="키워드" CONTENT=""> <br> <META NAME="Description" CONTENT=""> <br><스크립트 언어="javascript"> <br>함수 doit(ofrm){ <br> //ofrm.t1.value=parseInt(ofrm.s1.value)parseInt(ofrm.s2.value)parseInt(ofrm.s3.value)parseInt(ofrm.s4. 값); <br> ofrmofrm.t1.value=ofrm.s1.value ofrm.s2.value ofrm.s3.value ofrm.s4.value; <br>} <br></script> <br> </HEAD> <br> <BODY> <br><form name="tfrm"> <br><select name="s1" onChange="javascript:doit(this.form);"> <br><option value="*" 선택됨>请选择</option> <br><옵션 값="1">1</option> <br><옵션 값="2">2</option> <br><option value="3">3</option> <br></select> <br><select name="s2" onChange="javascript:doit(this.form);"> <br><option value="*" 선택됨>请选择</option> <br><옵션 값="1">1</option> <br><옵션 값="2">2</option> <br><option value="3">3</option> <br></select> <br><select name="s3" onChange="javascript:doit(this.form);"> <br><option value="*" 선택됨>请选择</option> <br><옵션 값="1">1</option> <br><옵션 값="2">2</option> <br><option value="3">3</option> <br></select> <br><select name="s4" onChange="javascript:doit(this.form);"> <br><option value="*" 선택됨>请选择</option> <br><옵션 값="1">1</option> <br><옵션 값="2">2</option> <br><option value="3">3</option> <br></select> <br><input type="text" name="t1" value=""> <br></form> <br> </BODY> <br></HTML> <br> </div>