您目前尚未登陆,请选择【登陆】或【注册
首页->行政办公->在线订票系统源码(毕业设计)>>Computer.aspx>>代码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:在线订票系统源码(毕业设计)


当前文件路径:TicketOnline/Computer.aspx 文件类型
普通视图
		            
1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Computer.aspx.cs" Inherits="Computer" %> 2 3<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4 5<html xmlns="http://www.w3.org/1999/xhtml" > 6<head runat="server"> 7 <title>Calculate</title> 8<script language="VBSCRIPT"> 9Function Show(m) 10If (Myform.Expression.Value = "" AND InStr(". + - * / ",m)) Then 11Myform.Expression.Value = "" 12ElseIf (InStr("+ - * / . ",Right(Myform.Expression.Value,1)) And InStr("+ - * / ",m)) Then 13ElseIf (m = ".") Then 14If (InStr("+ - * / . ",Right(Myform.Expression.Value,1))) Then 15ElseIf ((InstrRev(Myform.Expression.Value,".") > InstrRev(Myform.Expression.Value,"+")) And (InstrRev(Myform.Expression.Value,".") > InstrRev(Myform.Expression.Value,"-")) And (InstrRev(Myform.Expression.Value,".") > InstrRev(Myform.Expression.Value,"*")) And (InstrRev(Myform.Expression.Value,".") > InstrRev(Myform.Expression.Value,"/"))) Then 16Else 17Myform.Expression.Value = Myform.Expression.Value + m 18End If 19Else 20Myform.Expression.Value = Myform.Expression.Value + m 21END If 22 23End Function 24 25Function Sqrt() 26If (Myform.Expression.Value = "") Then 27Myform.Expression.Value = "" 28ElseIf (InStr(". + - * / ",Right(Myform.Expression.Value,1))) Then 29Else 30Myform.Expression.Value = Eval(Myform.Expression.Value)^2 31End If 32 33End Function 34Function Result() 35If (Myform.Expression.Value = "") Then 36Myform.Expression.Value = "" 37ElseIf (InStr(". + - * / ",Right(Myform.Expression.Value,1))) Then 38Else 39Myform.Expression.Value = Eval(Myform.Expression.Value) 40End If 41End Function 42Function Clean() 43Myform.Expression.Value = "" 44End Function 45</script> 46<style type="text/css"> 47<!-- 48.style5 {font-size: 18px} 49--> 50</style> 51</head> 52<body bgcolor="#ffffee" text=#000000> 53<form name="myform" method="post" action=""> 54<div align="center"> 55<table bgcolor="#C0e0ff" width="214" height="245" border="4"> 56<tr> 57<th width="206" scope="col"><H2><font color="#0000A0"> 计算器 </font></H2></th> 58</tr> 59<tr> 60<th height="36" scope="col"><table width="200" border="1"> 61<tr> 62<td colspan="4"><div align="center"> 63<input name="expression" type="text" value="" size="28" maxlength="28" > 64</div></td> 65</tr> 66<tr> 67<td><div align="center"> 68<INPUT TYPE="button" id="seven" 69onClick="Show('7')" VALUE=" 7 "> 70</div></td> 71<td><div align="center"> 72<INPUT TYPE="button" VALUE=" 8 " 73onClick="Show('8')"> 74</div></td> 75<td><div align="center"> 76<INPUT TYPE="button" VALUE=" 9 " 77onClick="Show('9')"> 78</div></td> 79<td><div align="center"> 80<INPUT TYPE="button" VALUE=" / " 81onClick="Show('/')"> 82</div></td> 83</tr> 84<tr> 85<td><div align="center"> 86<INPUT TYPE="button" VALUE=" 4 " 87onClick="Show('4')"> 88</div></td> 89<td><div align="center"> 90<INPUT TYPE="button" VALUE=" 5 " 91onClick="Show('5')"> 92</div></td> 93<td><div align="center"> 94<INPUT TYPE="button" VALUE=" 6 " 95onClick="Show('6')"> 96</div></td> 97<td><div align="center"> 98<INPUT TYPE="button" VALUE=" * " 99onClick="Show('*')"> 100</div></td> 101</tr> 102<tr> 103<td><div align="center"> 104<INPUT TYPE="button" VALUE=" 1 " 105onClick="Show('1')"> 106</div></td> 107<td><div align="center"> 108<INPUT TYPE="button" VALUE=" 2 " 109onClick="Show('2')"> 110</div></td> 111<td><div align="center"> 112<INPUT TYPE="button" VALUE=" 3 " 113onClick="Show('3')"> 114</div></td> 115<td><div align="center"> 116<INPUT TYPE="button" VALUE=" - " 117onClick="Show('-')"> 118</div></td> 119</tr> 120<tr> 121<td><div align="center"> 122<INPUT TYPE="button" VALUE=" 0 " 123onClick="Show('0')"> 124</div></td> 125<td><div align="center"> 126<INPUT TYPE="button" VALUE=" . " 127onClick="Show('.')"> 128</div></td> 129<td><div align="center"> 130<input type="button" value="sqr" 131onClick="sqrt()"> 132</div></td> 133<td><div align="center"> 134<input type="button" value=" + " 135onClick="Show('+')"> 136</div></td> 137</tr> 138<tr> 139<td colspan="2"><div align="center"> 140<INPUT TYPE="button" VALUE=" AC " 141onClick="clean()"> 142</div></td> 143<td colspan="2"><div align="center"> 144<INPUT TYPE="button" VALUE=" = " 145onClick="result()"> 146</div></td> 147</tr> 148</table></th> 149</tr> 150</table> 151
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:在线订票系统源码(毕业设计)

- 荒野新闻系统Access最终开源版

- 济南招贴网Asp.net2.0版源码下载

- 易想商城v3.0免安装(51aspx调..

- x3blog1.0.0多用户Beta2版源码

- SubText1.9.4完整免安装源码..

- Asp.net校友录(同学录)系统源码

- Asp.net客户管理系统源码

- 多层结构会员管理系统源码

51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号