【JSP开源代码栏目提醒】:以下是网学会员为您推荐的JSP开源代码-getAccount.jsp,希望本篇文章对您学习有所帮助。
<%@ page contentType="text/html; charset=gb2312" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/style.css" rel="stylesheet" type="text/css">
<title>系统设置控制台</title>
</head>
<script language="JavaScript">
<!-- Hide the script from old browsers --
function compute(obj)
{obj.expr.value = eval(obj.expr.value)}
var one = '1'
var two = '2'
var three = '3'
var four = '4'
var five = '5'
var six = '6'
var seven = '7'
var eight = '8'
var nine = '9'
var zero = '0'
var plus = '+'
var minus = '-'
var multiply = '*'
var divide = '/'
var decimal = '.'
function enter(obj, string)
{obj.expr.value += string}
function clearno(obj)
{obj.expr.value =""}
// --End Hiding Here -->
</script>
<body>
<table width="80%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#004C86" class="tableBorder_r">
<tr align="left" valign="top">
<td height="20%" colspan="3"><jsp:include page="top.jsp"/></td>
</tr>
<tr>
<td width="192" height="80%" scope="row" background="picture/left.jpg"><jsp:include page="to.jsp"/></td>
<td width="635" height="80%" scope="row">
<table width="42%" height="215" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#819BBC" bordercolorlight="#FFFFFF">
<tr>
<td height="28" bgcolor="#EFF6FE"><div align="center"><strong>调用计算器</strong></div></td>
</tr>
<tr>
<td height="185"><p> </p>
<table width="31%" height="199" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="194">
<form name="calc">
<table width="152" border=1 align="center">
<td colspan=4 width="202" bgcolor="#000000"><input type="text" name="expr" size=14 action="compute(this.form)" style="background-color: #000000; font-size: 18pt; color: #FFFF00; border: 1 inset #000000"> <tr>
<td width="37" bgcolor="#C0C0C0">
<p align="center"><input type="button" value=" 7 " onClick="enter(this.form, seven)">
<td width="50" bgcolor="#C0C0C0">
<p align="center"><input type="button" value=" 8 " onClick="enter(this.form, eight)">
<td width="47" bgcolor="#C0C0C0">
<p align="center"><input type="button" value=" 9 " onClick="enter(this.form, nine)">
<td width="50" bgcolor="#C0C0C0">
<p align="center"><input type="button" value=" / " onClick="enter(this.form, divide)">
<tr><td width="37" bgcolor="#C0C0C0">
<p align="center"><input type="button" value=" 4 " onClick="enter(this.form, four)">
<td width="50" bgcolor="#C0C0C0">
<p align="center"><input type="button" value=" 5 " onClick="enter(this.form, five)">
<td width="47" bgcolor="#C0C0C0">
<p align="center"><input type="button" value=" 6 " onClick="enter(this.form, six)">
<td width="50" bgcolor="#C0C0C0">
<p align="center"><input type="button" value=" * " onClick="enter(this.form, multiply)">
<tr><td width="37" bgcolor="#C0C0C0">
<p align="center"><input type="button" value=" 1 " onClick="enter(this.form, one)">
<td width="50" bgcolor="#C0C0C0">
<p align="center"><input type="button" value=" 2 " onClick="enter(this.form, two)">
<td width="47" bgcolor="#C0C0C0">
<p align="center"><input type="button" value=" 3 " onClick="enter(this.form, three)">
<td width="50" bgcolor="#C0C0C0">
<p align="center"><input type="button" value=" - " onClick="enter(this.form, minus)">
<tr><td width="37" bgcolor="#C0C0C0">
<p align="center"><input type="button" value=" . " onClick="enter(this.form, decimal)">
<td width="50" bgcolor="#C0C0C0">
<p align="center"><input type="button" value=" 0 " onClick="enter(this.form, zero)">
<td width="47" bgcolor="#C0C0C0">
<p align="center"><input type="button" value="Del" size= 3 onClick="clearno(this.form)">
<td width="50" bgcolor="#C0C0C0">
<p align="center"><input type="button" value=" + " onClick="enter(this.form, plus)">
<tr><td colspan=4 width="196" bgcolor="#C0C0C0"><input type="button" value=" = " onClick="compute(this.form)">
</table>
</form> </td>
</tr>
</table></td>
</tr>
</table> <p> </p>
<p> </p> <p> </p>
<p> </p></td>
</tr>
</table>
</body>
</html>
上一篇:
get.jsp
下一篇:
让我掉下眼泪的