<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> <br> <br> <title> New Document </title> <br> <meta name="Generator" content="EditPlus"> <br> <meta name="Author" content=""> <br> <meta name="Keywords" content=""> <br> <meta name="Description" content=""> <br><script language="javascript"> <BR>function doit(ofrm){ <BR> //ofrm.t1.value=parseInt(ofrm.s1.value)+parseInt(ofrm.s2.value)+parseInt(ofrm.s3.value)+parseInt(ofrm.s4.value); <BR> ofrmofrm.t1.value=ofrm.s1.value+ofrm.s2.value+ofrm.s3.value+ofrm.s4.value; <BR>} <BR></script> <br> <br> <br><form name="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> <br> <br> </div>