<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
<script language="javascript">
function sum(){
form1.t3.value=parseInt(form1.t1.value)+parseInt(form1.t2.value)}
</script>
</head><body><form name="form1" method="POST" action="">
<p><input type="text" name="t1" size="20"></p>
<p><input type="text" name="t2" size="20" onblur="sum()"></p>
<p><input type="text" name="t3" size="20"></p>
</form></body></html>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
<script language="javascript">
function sum(){
form1.t3.value=parseInt(form1.t1.value)+parseInt(form1.t2.value)}
</script>
</head><body><form name="form1" method="POST" action="">
<p><input type="text" name="t1" size="20"></p>
<p><input type="text" name="t2" size="20" onblur="sum()"></p>
<p><input type="text" name="t3" size="20"></p>
</form></body></html>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
<script language="javascript">
function sum(){
if(form1.t1.value!=""&&form1.t2.value!="")
{
form1.t3.value=parseInt(form1.t1.value)+parseInt(form1.t2.value)
}
else
{
alert("请输入数字")
}
}
</script>
</head><body><form name="form1" method="POST" action="">
<p><input type="text" name="t1" size="20"></p>
<p><input type="text" name="t2" size="20" onblur="sum()"></p>
<p><input type="text" name="t3" size="20"></p>
</form></body></html>
function myadd()
{
document.all.result.value=parseFloat(document.all.num1.value)+parseFloat(document.all.num2.value);
}
</script>
<input name=num1 onkeyup=myadd()>
<input name=num2 onkeyup=myadd()>
<input name=result>