<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> <br> <title>新しいドキュメント </TITLE> <br> <META NAME="Generator" CONTENT="EditPlus"> <br> <META NAME="著者" CONTENT=""> <br> <META NAME="キーワード" CONTENT=""> <br> <META NAME="説明" CONTENT=""> <br><スクリプト言語="javascript"> <br>function 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> </title> <br><フォーム名="tfrm"> <br><select name="s1" onChange="javascript:doit(this.form);"> <br><option value="*" selected>请選択</option> <br><option value="1">1</option> <br><option value="2">2</option> <br><option value="3">3</option> <br></select> <br><select name="s2" onChange="javascript:doit(this.form);"> <br><option value="*" selected>请選択</option> <br><option value="1">1</option> <br><option value="2">2</option> <br><option value="3">3</option> <br></select> <br><select name="s3" onChange="javascript:doit(this.form);"> <br><option value="*" selected>请選択</option> <br><option value="1">1</option> <br><option value="2">2</option> <br><option value="3">3</option> <br></select> <br><select name="s4" onChange="javascript:doit(this.form);"> <br><option value="*" selected>请選択</option> <br><option value="1">1</option> <br><option value="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>