<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>计算器 </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<link rel="stylesheet" type="text/css" href="./css/Noname1.css">
<script language="JavaScript" src="./js/Noname2.js">
</script>
</HEAD>
<BODY onload="setStartState()" align="center">
<div id="layer1" style="position:absolute;left:35px; top:13px;width:400px;height:300px; background-color:#CCFFFF; border:2px;z-index:3" >
<p>
<FORM METHOD=POST ACTION="" name="form_cal" onsubmit="return false">
<center>
<font face="宋体" color=#FF0066>我的计算器JavaScript</font><br>
<input type="text" name="text_total" size=45 value=0 class=textinput onMouseOver=alert("不能直接输入")>
<hr color=#FFFF00 size=3>
<input type="image" src="image/0.jpg"onMouseOver=this.className="xt" onMouseOut=this.className="tq" onclick="addNum('0')">
<input name="image" type="image" src="image/1.jpg" onclick="addNum('1')" onMouseOver=this.className="xt" onMouseOut=this.className="tq">
<input name="image" type="image" src="image/2.jpg" onclick="addNum('2')"onMouseOver=this.className="xt" onMouseOut=this.className="tq" >
<input name="image" type="image" src="image/3.jpg" onclick="addNum('3')" onMouseOver=this.className="xt" onMouseOut=this.className="tq">
<input name="image" type="image" src="image/4.jpg " onclick="addNum('4')" onMouseOver=this.className="xt" onMouseOut=this.className="tq" >
<br>
<input name="image" type="image" src="image/5.jpg" onclick= "addNum('5')" onMouseOver=this.className="xt" onMouseOut=this.className="tq">
<input name="image" type="image" src="image/6.jpg" onclick="addNum('6')" onMouseOver=this.className="xt" onMouseOut=this.className="tq">
<input name="image" type="image" src="image/7.jpg" onclick="addNum('7')" onMouseOver=this.className="xt" onMouseOut=this.className="tq">
<input name="image" type="image" src="image/8.jpg" onclick="addNum('8')" onMouseOver=this.className="xt" onMouseOut=this.className="tq">
<input name="image" type="image" src="image/9.jpg" onclick="addNum('9')" onMouseOver=this.className="xt" onMouseOut=this.className="tq">
<br>
<input name="image" type="image" src="image/加.jpg"onclick= setOper('+') onMouseOver=this.className="xt" onMouseOut=this.className="tq">
<input name="image" type="image" src="image/减.jpg" onclick=setOper('-') onMouseOver=this.className="xt" onMouseOut=this.className="tq" >
<input name="image" type="image" src="image/乘.jpg" onclick=setOper('*') onMouseOver=this.className="xt" onMouseOut=this.className="tq">
<input name="image" type="image" src="image/除.jpg" onclick=setOper('/') onMouseOver=this.className="xt" onMouseOut=this.className="tq">
<input name=" image" type="image" src="image/点.jpg" onclick="addPoint()" onMouseOver=this.className="xt" onMouseOut=this.className="tq" >
<br>
<input name="image" type="image" src="image/1分之x.jpg" onclick="useFunc('1/')" onMouseOver=this.className="xt" onMouseOut=this.className="tq">
<input name="image"type="image" src="image/平方.jpg"onclick= "useFunc('sqrt')" onMouseOver=this.className="xt" onMouseOut=this.className="tq">
<input name="image" type="image" src="image/sin.jpg" onclick="useFunc('sin')" onMouseOver=this.className="xt" onMouseOut=this.className="tq">
<input name="image" type="image" src="image/cos.jpg" onclick="useFunc('cos')" onMouseOver=this.className="xt" onMouseOut=this.className="tq">
<input name="image" type="image" src="image/tan.jpg" onclick="useFunc('tan')" onMouseOver=this.className="xt" onMouseOut=this.className="tq">
<input name="image" type="image" src="image/cot.jpg" onclick="useFunc('atan')" onMouseOver=this.className="xt" onMouseOut=this.className="tq">
<input name="image" type="image" src="image/等于.jpg" onclick=count() onMouseOver=this.className="xt" onMouseOut=this.className="tq">
<input name="image" type="image" src="image/清除.jpg" onclick="clearText()" onMouseOver=this.className="xt" onMouseOut=this.className="tq">
<input name="image" type="image" src="image/log.jpg"onclick="useFunc('log')" onMouseOver=this.className="xt" onMouseOut=this.className="tq">
<input name="image" type="image" src="image/exp.jpg"onclick="useFunc('exp')" onMouseOver=this.className="xt" onMouseOut=this.className="tq">
<br>
<hr color=#FFFF00 size=3>
</p>
<center><font face="楷书">欢迎大家使用</font></center>
</div>
</FORM>
<div id="layer2" style="position:absolute;left:35px; bottom:330px;width:400px;height:20px; background-color:#CCFFFF; border:2px;z-index:3" >
<FORM METHOD=POST ACTION="" name="form_cal1" onsubmit="return false">
<p>
<script type="text/javaScript">
function Shijian_time()
{
var monthArr=new Array()
monthArr[0]='January';
monthArr[1]='February';
monthArr[2]='March';
monthArr[3]='April';
monthArr[4]='May';
monthArr[5]='June';
monthArr[6]='July';
monthArr[7]='August';
monthArr[8]='September';
monthArr[9]='October';
monthArr[10]='November';
monthArr[11]='December';
var x=new Date();
var prefx='th';
var dstr=x.toLocaleString();
if(x.getDate() ==1 || x.getDate()==21 || x.getDate()==31)
prefx='st';
if(x.getDate()==2 || x.getDate()==22)
prefx='nd';
if(x.getDate()==3 || x.getDate==23)
prefx='rd';
var fdstr=x.toLocaleString();
document.getElementById('layer2').innerHTML=fdstr;
}
setInterval("Shijian_time()",1000);
</script>
</div>
</p>
</FORM>
</BODY>
</HTML>
没有合适的资源?快使用搜索试试~ 我知道了~
Javascript计算器
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共45个文件
jpg:29个
bak:7个
png:4个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
需积分: 10 2 下载量 117 浏览量
2011-05-11
23:16:11
上传
评论
收藏 244KB RAR 举报
温馨提示
自己制作的Javascript计算器,帮助学习
资源推荐
资源详情
资源评论
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
共 45 条
- 1
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/2f828924de734db9a4e8f1f41e873e87_qianggexuan.jpg!1)
qianggexuan
- 粉丝: 10
- 资源: 11
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)