<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>using maths</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<script language="javascript">
function rec(form){
form.recanswers.value=(form.recshortth.value*form.recheightth.value+
form.reclength.value*form.recheightth.value)/2
}
</script>
<form>
<h1>area tixing</h1>
topbottom
<input type="text" name="recshortth"><br>
downbottom
<input type="text" name="reclength"><br>
height
<input type="text" name="recheightth"><br>
<input name="button" type="button" onclick="rec(this.form)" value="area">
<br>
<input type+"text" name="recanswers"><br>
</form>
abin vhaiyun@163.com
</body>
</html>
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>using maths</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<script language="javascript">
function rec(form){
form.recanswers.value=(form.recshortth.value*form.recheightth.value+
form.reclength.value*form.recheightth.value)/2
}
</script>
<form>
<h1>area tixing</h1>
topbottom
<input type="text" name="recshortth"><br>
downbottom
<input type="text" name="reclength"><br>
height
<input type="text" name="recheightth"><br>
<input name="button" type="button" onclick="rec(this.form)" value="area">
<br>
<input type+"text" name="recanswers"><br>
</form>
abin vhaiyun@163.com
</body>
</html>
本文介绍了一个简单的网页应用,该应用通过JavaScript实现梯形面积的计算。用户只需输入梯形的上底、下底及高,点击按钮即可得到面积结果。
1525

被折叠的 条评论
为什么被折叠?



