网页计算器(javascript脚本)
来源:互联网 发布:iphone一键越狱软件 编辑:程序博客网 时间:2024/06/13 07:28
<html> <head> <script> var s=""; function add(a)//连接输入字符 { var t; t=a.value; s+=t; cal.sr.value=s; } function rn()//计算 { cal.rs.value=eval(s); } </script> </head> <body> <center> <form name="cal"> <input type="text" style="{font-size:40px}" name="sr" value="" size=16> <br> <input typt="text" style="{font-size:40px}" name="rs" value="" size=16> <br> <input type="button" value="7" name="b7" onclick="add(this)"> <input type="button" value="8" name="b8" onclick="add(this)"> <input type="button" value="9" name="b9" onclick="add(this)"> <input type="button" value="+" name="bjia" onclick="add(this)"> <br> <input type="button" value="4" name="b4" onclick="add(this)"> <input type="button" value="5" name="b5" onclick="add(this)"> <input type="button" value="6" name="b6" onclick="add(this)"> <input type="button" value="-" name="bjian" onclick="add(this)"> <br> <input type="button" value="1" name="b1" onclick="add(this)"> <input type="button" value="2" name="b2" onclick="add(this)"> <input type="button" value="3" name="b3" onclick="add(this)"> <input type="button" value="*" name="bcheng" onclick="add(this)"> <br> <input type="button" value="." name="bdian" onclick="add(this)"> <input type="submit" value="C" name="del"> <input type="button" value="=" name="bd" onclick="rn()"> <input type="button" value="/" name="bchu" onclick="add(this)"> <br> </form> </center> </body></html>
0 0
- 网页计算器(javascript脚本)
- Javascript网页计算器
- JavaScript网页计算器
- 用javascript编写网页版计算器
- jQuery/javascript实现简单网页计算器
- 一个基于JavaScript的简单网页计算器
- JavaScript实现的网页计算器功能
- JavaScript网页脚本编程良好习惯
- JavaScript网页脚本性能优化
- 网页计算器
- 网页计算器
- 网页计算器
- 网页计算器
- 网页计算器
- 网页计算器
- <Java Web学习初级阶段>JavaScript实现简单网页计算器
- javascript + html 入门之实现一个网页计算器
- 网页常用脚本(javascript)小技巧
- Android中的Handler
- 最小生成树
- HTML(3)
- 自定义标签与spring注入
- Stream.Write 与 StreamWriter.Write 的不同
- 网页计算器(javascript脚本)
- CF 240 D. Mashmokh and ACM
- JNDI 是什么
- 用DetachedCriteria查询
- php文件管理工具——RESPONSIVE filemanager
- (3)jmock测试入门
- DES算法实现(C++版)
- jq select操作
- 将visual studio 中的解决方案整体移植给别人