28,409
社区成员




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>简易计算</title>
</head>
<script language="javascript">
function ShowRe()
{
document.getElementById("C").value = Number(document.getElementById("A").value) - Number(document.getElementById("B").value)
}
</script>
<body >
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>A <input type="text" name="A" value="0" id="A" onkeyup="ShowRe()" /> </td>
<td>B <input type="text" name="B" value="0" id="B" onkeyup="ShowRe()" /> </td>
</tr>
</table>
C=<input type="text" name="C" id="C" value="0" />
</body>
</html>
function ShowRe()
{
document.getElementById("C").value = Number(document.getElementById("A").value) - Number(document.getElementById("B").value)
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>简易计算</title>
</head>
<script language="javascript">
function ShowRe()
{
document.getElementById("C").value = Number(document.getElementById("A").value) - Number(document.getElementById("B").value)
}
</script>
<body >
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>A <input type="text" name="A" value="0" id="A" onkeyup="ShowRe()" /> </td>
<td>B <input type="text" name="B" value="0" id="B" onkeyup="ShowRe()" /> </td>
</tr>
</table>
C=<input type="text" name="C" id="C" value="0" />
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>简易计算</title>
</head>
<script language="javascript">
function ShowRe()
{
document.getElementById("C").value = Number(document.getElementById("A").value) + Number(document.getElementById("B").value)
}
</script>
<body >
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>A <input type="text" name="A" value="0" id="A" onkeyup="ShowRe()" /> </td>
<td>B <input type="text" name="B" value="0" id="B" onkeyup="ShowRe()" /> </td>
</tr>
</table>
C=<input type="text" name="C" id="C" value="0" />
</body>
</html>