ÁöÁ¤µÈ°¡°ÝÀ» ÀÔ·ÂÇÏ´Â °¡°ÝÀ¸·Î ¼öÁ¤ÇÏ°í ,¿î¼Û·á¸¦ ´õÇϱâ·Î Ãß°¡ÇÏ´Â°Í ÀÔ´Ï´Ù |
|
|
 |
14³â Àü |
<form name="form1">
ÀÎÆ®·Î(20¸¸¿ø)<input type=text name="intro" onkeyup="my_calc(this.form)">
¼ö·®: <input type=text name="intro_count" size=3 onkeyup="my_calc(this.form)" value="0"> + Ãß°¡¿î¼Û·á: <input type=text name="intro_dpay" value="0" onkeyup="my_calc(this.form)">
ÇÕ°è: <input type=text name="intro_sum" size=6 readonly value="0"><br><br>
<script language="javascript">
function my_calc(f){
if(f.intro_count.value=="") f.intro_count.value="0";
f.intro_sum.value = eval(f.intro.value) * eval(f.intro_count.value) + eval(f.intro_dpay.value) ;
}
</script>
</form> |
|
̵̧ : 422 |
̵̧
¸ñ·Ï
|
|