欢迎你的访问
 
返回天空素材库首页 http://www.Skysucai.com  
收藏本站
将本站设为首页
您当前的位置:天空素材首页 -> 面积计算器
 
栏 目 导 航
. 常用代码 . 综合特效
. 状态特效 . 游戏特效
. 页面背景 . 页面特效
. 页面导航 . 文本操作
. 文本特效 . 图形特效
. 鼠标特效 . 时间日期
. 密码特效 . 浏览相关
. 警告对话 . 技巧特效
. 计数转换 . 测试搜索
. 代码生成 . 播放音乐
. 按钮特效 . 系统相关
. 链接特效 . 黑客性质
. 相关特效 . 窗口特效
. 广告特效 . 表单表格
. 模拟例子
相 关 文 章
本 类 热 门
· 面积计算器
· 100只鸡
· 不错的助手“默林
· 数制转换 可自定2、8...
· 科学计算器
· 坐标图
· 职位
· 三角函数计算
· 装机计算器
· NUMBER对象的增强函数...
· 阿拉伯数字转换为英文...
· 计算圆周率
更多  
 
 
更多  
最 新 推 荐
· 状态栏时间跳动特效
· 农历挂历特效
· 真正的万年历
· 网页特效 菜单-会动的...
· 网页特效 时间-任意位...
· 个人网页特效-有前后日...
· 时间每过一秒,Radio就...
· 时钟显示在任意指定位...
· 带开关的Form时钟
· 记录几天后的日期
· 显示登陆时间
· 退出时显示访问时间
更多  
     
面积计算器
面积计算器
作者:无  来源:本站整理  名称:面积计算器 

减小字体 增大字体

       

[提示:你可先按照下面代码提示修改 上面部分代码,再按运行,此处看到的演示不完全正确]

此特效的详细完整代码如下:
]  源码如下
----------------------------------------------------------
<!-- This script has been in the http://www.javascripts.com Javascript Public Library! -->
<!-- Note that though this material may have been in a public depository, certain author copyright restrictions may apply. -->
<html>
<head>
<style>
<!--
body, p, div,td,input {font:menu;line-height: 150%}
.div { font-family: 宋体; font-size: 12px; line-height: 150% }
-->
</style>
<title>Area Calculator-www.51windows.Net</title>
</head>

<body>
<script language="JavaScript">
function Circle(form)
{form.circleanswer.value = form.circleradius.value * form.circleradius.value * 3.14159265}
function Rec(form)
{form.recanswer.value = form.reclength.value * form.recheight.value}
function Sphere(form)
{form.sphereanswer.value = form.sphereradius.value * form.sphereradius.value * 3.14159265 * 4}
function Square(form)
{form.squareanswer.value = form.squarelength.value * form.squarelength.value}
function Tri(form)
{form.trianswer.value = form.tribase.value * form.triheight.value / 2}
</script>
<form>
<center><h1>Circle</h1>
Enter the radius<input type="text" name="circleradius"><br>
<input type="button" value="Find Area" onClick="Circle(this.form)"><br>
<input type="text" name="circleanswer">square feet<br>
<h1>Rectangle</h1>
Enter the length of one side<input type="text" name="reclength"><br>
Enter the height of one side<input type="text" name="recheight"><br>
<input type="button" value="Find Area" onClick="Rec(this.form)"><br>
<input type="text" name="recanswer">square feet<br>
<h1>Sphere</h1>
Enter the radius<input type="text" name="sphereradius"><br>
<input type="button" value="Find Area" onClick="Sphere(this.form)"><br>
<input type="text" name="sphereanswer">square feet<br>
<h1>Square</h1>
Enter the length of one side<input type="text" name="squarelength"><br>
<input type="button" value="Find Area" onClick="Square(this.form)"><br>
<input type="text" name="squareanswer">square feet<br>
<h1>Triangle</h1>
Enter the length of the base<input type="text" name="tribase"><br>
Enter the height<input type="text" name="triheight"><br>
<input type="button" value="Find Area" onClick="Tri(this.form)"><br>
<input type="text" name="trianswer">square feet
</form>
<br>
<br>
</body>
</html>

<!-- Simba says Roar. -->
[返回上一页] [打印面积计算器]
上一篇特效:三角函数计算
下一篇特效:职位
     
| 关于本站 | 服务条款 | 友情连接 | 网站地图 | 联系方式 | 广告联系 |