📄 calculator.asp
字号:
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>公式计算器</title>
<link rel="stylesheet" href="../../style.css">
<script language=javascript>
function fadd(vlabel){
document.form1.Formula.value = document.form1.Formula.value + vlabel;
return;
}
function exitWindows(){
opener.document.all.item("formula").value = document.form1.Formula.value;
window.close();
}
</script>
</head>
<body>
<form method="POST" name="form1">
<table border="0" width="100%" id="table1">
<tr>
<td>
<p style="margin-top: 6px; margin-bottom: 6px">
<input type="text" name="Formula" size="42"></td>
</tr>
<tr>
<td>
<p style="margin-top: 6px; margin-bottom: 6px"><font face="宋体">
<span style="font-size: 9pt">
<input type="button" value=" 1 " name="B1" onclick="return fadd('1')">
<input type="button" value=" 2 " name="B2" onclick="return fadd('2')">
<input type="button" value=" 3 " name="B3" onclick="return fadd('3')">
<input type="button" value=" 4 " name="B4" onclick="return fadd('4')">
<input type="button" value=" 5 " name="B5" onclick="return fadd('5')">
<input type="button" value="基本工资字段" name="Bbase" onclick="return fadd('基本工资')"></td>
</tr>
<tr>
<td>
<p style="margin-top: 6px; margin-bottom: 6px">
<input type="button" value=" 7 " name="B7" onclick="return fadd('7')">
<input type="button" value=" 8 " name="B8" onclick="return fadd('8')">
<input type="button" value=" 9 " name="B9" onclick="return fadd('9')">
<input type="button" value=" 0 " name="B0" onclick="return fadd('0')">
<input type="button" value=" 6 " name="B6" onclick="return fadd('6')">
<input type="button" value=" . " name="Bp" onclick="return fadd('.')">
<input type="button" value=" + " name="Badd" onclick="return fadd('+')">
<input type="button" value=" - " name="Bminus" onclick="return fadd('-')"> </td>
</tr>
<tr>
<td>
<p style="margin-top: 6px; margin-bottom: 6px">
<input type="button" value=" * " name="Bmult" onclick="return fadd('*')">
<input type="button" value=" / " name="Bdev" onclick="return fadd('/')">
<input type="button" value=" ( " name="Bleft" onclick="return fadd('(')">
<input type="button" value=" ) " name="Bright" onclick="return fadd(')')">
<input type="submit" value="确 定" name="BSubmit" onclick="exitWindows()">
<input type="reset" value="清 空" name="BReset">
<input type="button" value="取 消" name="Bcancel" onclick="window.close()"></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -