·用户注册
·用户登陆
·用户中心
首页
+
网络学院
+
网页特效
+
实用工具
+
网络资源
+
字体下载
+
娱乐世界
+
时尚前沿
+
图片中心
+
动漫天地
+
金石社区
图形
-
网页设计
-
优化
-
动易
-
动网
-
HTML
-
PSD
-
FLASH模板
-
插件
-
杀毒
-
系统工具
-
FLASH音乐
-
FLASH游戏
-
美女
您现在的位置:
金石网
>>
网页特效
>>
计数转换
>> 特效正文
时钟和计算器
『 更新时间:2002-9-14 』『 字体:
变小
变大
』『 作者:未知 | 来源:网络 』
把如下代码加入<body>区域中: <HTML><HEAD><TITLE>时钟和计算器</TITLE> <META http-equiv=Content-Type content="text/html; charset=gb2312"> <SCRIPT language=JAVASCRIPT> <!-- begin calculator var newnum = true; var mem = 0; /********************* scientific functions *********************/ //displays the scientific buttons if the user chooses // numerous scientific functions var Y= ""; var X= ""; function XY() { document.Calc.Input.value="1"; for (var times = 1; times <= Y; times++) { document.Calc.Input.value +='*'; document.Calc.Input.value += X first(); } } function paren1() { if(newnum) { document.Calc.Input.value='('; newnum=false; } else document.Calc.Input.value+='('; } function paren2() { if(newnum) { document.Calc.Input.value=')'; newnum=false; } else document.Calc.Input.value+=')'; } function Derricks_A_nimrod() { if(X == "") { X = document.Calc.Input.value; newnum= true; } else Y = document.Calc.Input.value; document.Calc.Input.value = "1"; newnum=true; XY(); } function square() {document.Calc.Input.value=Math.sqrt(document.Calc.Input.value);} function COS(){document.Calc.Input.value=Math.cos(document.Calc.Input.value);newnum=true} function SIN(){ document.Calc.Input.value=Math.sin(document.Calc.Input.value);newnum=true} function TAN(){document.Calc.Input.value=Math.tan(document.Calc.Input.value);newnum=true} function LOG(){document.Calc.Input.value=Math.log(document.Calc.Input.value);newnum=true} function rnd(){document.Calc.Input.value=Math.round(document.Calc.Input.value);newnum=true} function ATAN(){document.Calc.Input.value=Math.atan(document.Calc.Input.value);newnum=true} function onex(){document.Calc.Input.value= 1/ document.Calc.Input.value;newnum=true} function ACOS(){document.Calc.Input.value= Math.acos(document.Calc.Input.value);newnum=true} function ASIN(){document.Calc.Input.value= Math.asin(document.Calc.Input.value);newnum=true} function ABS(){document.Calc.Input.value= Math.abs(document.Calc.Input.value);newnum=true} function X2(){document.Calc.Input.value=document.Calc.Input.value * document.Calc.Input.value;newnum=true} function EXP(){document.Calc.Input.value=Math.exp(document.Calc.Input.value);newnum=true} function PIE(){if (newnum){document.Calc.Input.value=Math.PI;newnum= false;}else document.Calc.Input.value+=Math.PI;} // end scientific functions //--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==\\ /***************** memory functions ******************/ //this function was created cuz' it kept telling me there was a syntax error //when i kept this stuf in the memR function. why, i do not know. but it works now! function pointless() {newnum = false; document.Calc.Input.value=mem;} //called on by the memory recall [MR] button function memR() { if (mem == "0") { alert("There is nothing stored in the memory at this time."); } else{ if (newnum) pointless(); else document.Calc.Input.value +=mem }} //called on by the nenory store [sto] button function memsto() { var txt = document.Calc.Input.value; if (txt == "0") { alert("there is nothing to store in the memory!"); window.defaultStatus = "idiot" ;} else mem = document.Calc.Input.value; newnum= true; document.Calc.Input.value="0" } // Called by memory plus [m+] button function memoryplus() { var txt=document.Calc.Input.value; if (((txt < "a" || "z" < txt) && (txt < "A" || "Z" < txt)) && txt !== '0') { mem += '+'; mem += txt; mem = eval(mem); document.Calc.Input.value = '0'; newnum = true; } else alert("There is nothing to add to the memory.");} // Called by memory minus [m-] button function memoryminus() { var txt=document.Calc.Input.value; if (((txt < "a" || "z" < txt) && (txt < "A" || "Z" < txt)) && txt !== '0'){ mem += - txt; mem = eval(mem); document.Calc.Input.value = '0'; newnum = true;} else alert("There is nothing to subtract from the memory.");} //called on by the equals [=] button. function first() { var txt = document.Calc.Input.value; if (((txt < "a" || "z" < txt) && (txt < "A" || "Z" < txt)) && txt !== '') { document.Calc.Input.value = eval(document.Calc.Input.value); newnum= true; } else alert("\nthere are invalid charecters in the Input feild.\n");} //Memory functions for the multiple memory banks function memplus(input) { if (((input < "a" || "z" < input) && (input < "A" || "Z" < input)) && input !== 'b') { input.membank.value += ' + '; input.membank.value += document.Calc.Input.value; input.membank.value = eval(input.membank.value); document.Calc.Input.value="0"; newnum= true; } else alert("There are invalid charecters in the mem feild");} function mem2sto(input) { input.membank.value = document.Calc.Input.value; document.Calc.Input.value="0"; newnum= true; } function memminus(input) { if (((input < "a" || "z" < input) && (input < "A" || "Z" < input)) && input !== 'b') { input.membank.value += ' - '; input.membank.value += document.Calc.Input.value; input.membank.value = eval(input.membank.value); document.Calc.Input.value="0"; newnum= true; } else alert("There are invalid charecters in the mem feild");} function P_O_S() { mem = "0"; } /*--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==*/ /***************** misc. functions ******************/ //called on by all of the # buttons function input(num) { if (newnum) { document.Calc.Input.value = num; newnum = false;} else document.Calc.Input.value += num ;} //called on by the operation buttons. function operation(op) { document.Calc.Input.value += ' ' document.Calc.Input.value += op; document.Calc.Input.value += ' ' newnum = false; } function deleteChar(Input) { if (Input.value.length == 1) { newnum="true"; document.Calc.Input.value= "0" } else { Input.value = Input.value.substring(0, Input.value.length - 1); }} //called on by the cahnge sign [+/-] button. function change_sign() { document.Calc.Input.value = document.Calc.Input.value * -1; newnum=false ; } //called on by the All Clear [AC] button. function AllClear(){document.Calc.Input.value='0';mem='0';newnum=true;X="";Y="";} //called on by the clear entry [CE] button. function Clear(){document.Calc.Input.value='0';newnum=true;X="";Y="";} //complains if you put the focus on the Input feild. function complain() { //alert("\ndo NOT change the input feild dirrectly!\nUse the buttons"); document.Calc.one.focus();} //script that controls the color changing link when using IE function initArray() { for (var i = 0; i < initArray.arguments.length; i++) { this[i] = initArray.arguments[i]; } this.length = initArray.arguments.length; } var colors = new initArray( "red", "orange", "yellow", "green", "blue", "purple"); delay = .1; // seconds link = 0; vlink = 2; function linkDance() { link = (link+1)%colors.length; vlink = (vlink+1)%colors.length; document.linkColor = colors[link]; document.vlinkColor = colors[vlink]; setTimeout("linkDance()",delay*1000); } linkDance(); // function that controls the keyboard control if using Netscape // all of the "k" values listed are ascii code for the key being pushed // special thanx to the guy that i got this basic scheme from. I dont remember // who, but he had a kick @$$ site and lots of javascript games. // if you are him, please let me know and i will put you on my credits page :) function keyDown(DnEvents){ k=DnEvents.which if (k == 49){input(1)} //1 if (k == 50){input(2)} //2 if (k == 51){input(3)} //3 if (k == 52){input(4)} //4 if (k == 53){input(5)} //5 if (k == 54){input(6)} //6 if (k == 55){input(7)} //7 if (k == 56){input(8)} //8 if (k == 57){input(9)} //9 if (k == 48){input(0)} //0 if (k == 47){operation('/')} //forward slash if (k == 43){operation('+')} //+ if (k == 45){operation('-')} //- if (k == 42){operation('*')} //* if (k == 46){input('.')} //. if (k == 40){paren2()} //( if (k == 41){paren2()} //) if (k == 13){first()} //enter if (k == 8){deleteChar(document.Calc.Input)} //back space if (k == 63){About()} //? if (k == 65){About()} //A if (k == 97){About()} //a if (k == 66){ABS()} //B if (k == 98){ABS()} //b if (k == 99){Clear()} //c if (k == 67){Clear()} //C if (k == 100){Credits()} //d if (k == 68){Credits()} //D if (k == 69){EXP()} //E if (k == 101){EXP()} //e if (k == 71){LOG()} //G if (k == 103){LOG()} //g if (k == 72){ctrl()} //H if (k == 104){ctrl()} //h if (k == 73){SIN()} //I if (k == 105){SIN()} //i if (k == 76){P_O_S()} //L if (k == 108){P_O_S()} //l if (k == 77){memoryminus()} //M if (k == 109){memoryminus()} //m if (k == 78){rnd()} //N if (k == 110){rnd()} //n if (k == 79){COS()} //O if (k == 111){COS()} //o if (k == 80){memoryplus()} //P if (k == 112){memoryplus()} //p if (k == 74){window.close()} //Q if (k == 113){window.close()} //q if (k == 114){memR()} //r if (k == 82){memR()} //R if (k == 115){memsto()} //s if (k == 83){memsto()} //S if (k == 84){TAN()} //T if (k == 116){TAN()} //t if (k == 85){square()} //U if (k == 117){square()} //u if (k == 87){onex()} //W if (k == 119){onex()} //w if (k == 88){X2()} //X if (k == 120){X2()} //x if (k == 89){Derricks_A_nimrod()} //Y function named after my anoying friend if (k == 121){Derricks_A_nimrod()} //y who pushed me to make that function } // no offense Derrick! :p systm="" ver=navigator.appVersion Nv=ver.charAt(0) len=ver.length for(iln=0;iln<len;iln++) if(ver.charAt(iln)=="(") break systm = ver.charAt(iln+1).toUpperCase() if (systm !== "C"){if (Nv >= 4){ document.onkeydown = keyDown document.captureEvents(Event.KEYDOWN) }} function bank() { if (location.search == '' ) { document.write('<b>how many memory banks would you like to view?</b>'); document.write('<FORM NAME="bank" METHOD="GET">'); document.write('<TABLE><center>'); document.write('<TD><INPUT TYPE="Text" NAME="membanks" SIZE="4" MAXLENGTH="3">'); document.write('<TD ALIGN="Center" COLSPAN=2><INPUT TYPE="SUBMIT" VALUE="submit">'); document.write('</TR>'); document.write('</TABLE>'); document.write('</FORM>'); document.write('</FONT></CENTER>'); return''; } else { document.write('<FORM NAME="bank' + membanks + '">'); document.write('<INPUT TYPE="HIDDEN" NAME="numElements" VALUE="' + location.search.substring(location.search.indexOf('=') + 1) + '">'); document.write('<TABLE>'); for (var membanks = 1; membanks <= location.search.substring(location.search.indexOf('=') + 1); membanks++) { document.write('<TABLE border="4">'); document.write('<TR>'); document.write('<TD colspan="6">Memory bank #' + membanks + ' '); document.write('<INPUT TYPE="TEXT" NAME="membank" size="18">'); document.write('<TR>'); document.write('<TD><input type="button" value="sto" OnClick="mem2sto(this.form)" '); document.write('><td><input type="button" value="M+" OnClick="memplus(this.form)" '); document.write('><td><input type="button" value="M-" Onclick="memminus(this.form)" '); document.write('><td><input type="button" value="Mr" OnClick="document.Calc.Input.value=this.form.membank.value"><td><input type="reset" value="Mc">'); document.write('<TR>'); document.write('</table><br>'); document.write('</form><form name="bank ' + membanks + '">'); } document.write('<TABLE><center>'); document.write('<TR>'); document.write('<TD ALIGN="Center" COLSPAN=2><INPUT TYPE="button" VALUE="<--back" OnClick=history.go(-1)>'); document.write('</TABLE>'); document.write('</FONT></CENTER>'); return''; } } function control() { if (systm != "C"){if (Nv >= 4){ document.write('<small><small><small><small><small><small><small><font face="Comic Sans MS">'); document.write(navigator.appName);document.write(navigator.appVersion); document.write('<br>keyboard control enabled.<br>Press "h" for help.'); document.write('</small></small></small></small></small></small></small>'); return ''; } else return ''; } else return''; } function IE() { if (navigator.appName !== "Netscape"){ document.write('<table border="3"><td><table border="0" cellpading="2" bgcolor="silver"><td bgcolor="0000ff">?font color="white">N?</font><td><font color="red"><b>Now!</b></font></table></table>'); document.write('<table border="1" bg color="FFFFFF"><tr><td bgcolor=000000><a href="http://www.netscape.com/computing/download/index.html?cp=hom11tdow" target="_new">Download netscape <b>NOW!</b></a></table><br>'); return ''; } else return ''; } // end calculator functions--> //--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==\\ <!-- begin help windows var remote=null; function rs(n,u,w,h,x) { remote=window.open(u,n,'width='+w+',height='+h+',resizable=no,scrollbars=yes,status=0'); if (remote != null) { if (remote.opener == null ) remote.opener = self; } if (x==1){return remote;} } function ctrl() { var Ctrl=rs("","",400,200,1); Ctrl.document.open(); Ctrl.document.writeln('<html><head>'); Ctrl.document.writeln('<title>Keyboard controls</title></head><body bgcolor=#ffffff><font size=+1 face="Arial,Helvetica"><b>Keyboard controls</b></font>牋?a href="javascript:window.close()">Done</a><p>'); Ctrl.document.writeln('<p>first, turn num lock on. (on most comps. it is the upper left button on the numeric keypad)'); Ctrl.document.writeln('<p>Now you can use the keypad (or the buttons accross the top of the keyboard) to operate the main functions of the calculator, such as plus, minus, ect.'); Ctrl.document.writeln('<p>now for the other features...<p><table border="0" callpading="5"><td>'); Ctrl.document.writeln('a or A OR ?is about<td>b or B is abslout value<tr>'); Ctrl.document.writeln('<td>c or C is clear<td>e or E is exponent<tr>'); Ctrl.document.writeln('<td>g or G is log<td>h or H is help<tr>'); Ctrl.document.writeln('<td>i or I is sign<td>l or L is memory clear<tr>'); Ctrl.document.writeln('<td>m or M is memory minus牋牋<td>n or N is round<tr>'); Ctrl.document.writeln('<td>o or O is cosign<td>p or P is memory plus<tr>'); Ctrl.document.writeln('<td>q or Q is window close<td>r or R is memory recall<tr>'); Ctrl.document.writeln('<td>s or S is memory store<td>t or T is tangent<tr>'); Ctrl.document.writeln('<td>u or U is square root<td>w or W is 1 devided by x<tr>'); Ctrl.document.writeln('<td>x or X is square<td>y or Y is x to the power of y<tr>'); Ctrl.document.writeln('<td>d or D is credits<tr></table>'); Ctrl.document.writeln('<p><font color="red"><b>NOTE<blink>:</b></blink>in order for this stuff to work, the focus must NOT be on any of the buttons<br></font>wheras the buttons do still work, if you want to use the keyboard controls just click on the background to get the focus off of anything else'); Ctrl.document.writeln('Also, to use the [x^y] button first push any # then the [x^y] button then push another # then push the [x^y] button one more time.'); Ctrl.document.writeln('<p align="right"><a href="javascript:window.close()">Done</a></p></body></html>'); Ctrl.document.close(); } function About() { var ABOUT=rs("","",400,200,1); ABOUT.document.open(); ABOUT.document.writeln('<html><head>'); ABOUT.document.writeln('<title>About</title></head><body bgcolor=#ffffff><font size=+1 face="Arial,Helvetica"><b>About</b></font>牋?a href="javascript:window.close()">Done</a><p>'); ABOUT.document.writeln('<p>This calculator Was writen By Tony Kepler (age 14)<br>'); ABOUT.document.writeln('<p>I have been teaching myself JavaScript for the past 3-4 months but'); ABOUT.document.writeln('this is my first attempt at a Javascript other than simple <br>'); ABOUT.document.writeln('alert and comfirm windows and other things like that<br>'); ABOUT.document.writeln('my URL is <a href="http://welcome.to/Bushido">http://welcome.to/Bushido</a> and my e-mail is <a href="mailto:bushido49@yahoo.com">bushido49@yahoo.com</a>'); ABOUT.document.writeln('If you have any questions, comments, or complaints feal free to contact me.<br>'); ABOUT.document.writeln('I made this script without the use of any images, even the bar at the top is just a table with set widths.<br>'); ABOUT.document.writeln('well, thats all the usless stuff i can think of saying right now, so HAVE FUN! :) '); ABOUT.document.writeln('<p align="right"><a href="javascript:window.close()">Done</a></p></body></html>'); ABOUT.document.close(); } function Credits() { var credits=rs("","",400,200,1); credits.document.open(); credits.document.writeln('<html><head>'); credits.document.writeln('<title>Credits</title></head><body bgcolor=#ffffff><font size=+1 face="Arial,Helvetica"><b>Credits</b></font>牋?a href="javascript:window.close()">Done</a><p>'); credits.document.writeln('<p>Here is a list of people i would like to give credit to and say thanx.<p>'); credits.document.writeln('Xpert at <a href="http://www.geocities.com/~xpert" target="new">http://www.geocities.com/~xpert</a> for helping me with the loop used to make the multiple memory banks<p>'); credits.document.writeln('my dad, for giving me the idea for the multiple memory banks<p>'); credits.document.writeln('my friends for pretending to be intrested in what i was doing.<p>'); credits.document.writeln('<a href="http://www.javagoodies.com" target="new">javagoodies</a> for being the best darn JavaScript cut and paste library out there<p>'); credits.document.writeln('Some guy that posted his JavaScript calc. at <a href="http://www.javascriptsource.com" target="new">the JavaScript source</a> who i got the delete button from.<p>'); credits.document.writeln('Timothy of <a href="http://www.essex1.com/people/timothy/js-index.htm" target="new">http://www.essex1.com/people/timothy/</a> for first introducing me to JavaScript and also for being a great JavaScript cut and paste library<p>'); credits.document.writeln('well, thanx guys, for all your help. :)<p>'); credits.document.writeln('<p align="right"><a href="javascript:window.close()">Done</a></p></body></html>'); credits.document.close(); } // End --> //--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==\\ /***************** clock / greeting ******************/ <!-- begin clock var timerID = null; var timerRunning = false; function stopclock() { if(timerRunning) clearTimeout(timerID); timerRunning = false; } function startclock() { stopclock(); showtime(); } function showtime () { var now = new Date(); var hours = now.getHours(); var minutes = now.getMinutes(); var seconds = now.getSeconds() var timeValue = "" + ((hours >12) ? hours -12 :hours) timeValue += ((minutes < 10) ? ":0" : ":") + minutes timeValue += ((seconds < 10) ? ":0" : ":") + seconds timeValue += (hours >= 12) ? " P.M." : " A.M." document.Calc.time.value = timeValue; // you could replace the above with this // and have a clock on the status bar: // window.status = timeValue; timerID = setTimeout("showtime()",1000); timerRunning = true; return ''; } function greeting() { var today = new Date(); var hrs = today.getHours(); document.write("Good "); if (hrs < 6) document.write("(Early) Morning</b>"); else if (hrs < 12) document.write("Morning"); else if (hrs <= 18) document.write("Afternoon"); else document.write("Evening"); document.writeln("!"); document.writeln("</small>"); return ''; } // end clock --> </SCRIPT> <META content="Microsoft FrontPage 4.0" name=GENERATOR></HEAD> <BODY text=#000000 vLink=#0000ff link=#00ff00 bgColor=#0000bf onload="alert('\nwelcome to bushidos calculator!\n');startclock();window.defaultStatus='';X='';Y='';" onunload="alert('thank you for using bushidos calculator, come back soon!')"> <FORM name=Calc> <SCRIPT> document.write(control()); </SCRIPT> <FONT size=5><B> <DIV align=center> <CENTER> <P>Tony's JavaScript Calculator</B></FONT> <BR><B> <SCRIPT>document.write(greeting());</SCRIPT> </B></ALIGN><INPUT size=13 name=time><BR><! --== BELOW IS THE "BAR" DISPLAYED NEAR THE TOP OF THE PAGE ==--><BR></P></CENTER></DIV> <DIV align=center> <CENTER> <TABLE cellSpacing=1 HSPACE="0" VSPACE="0"> <TBODY> <TR> <TD width=1 bgColor=#000000><BR></TD> <TD width=1 bgColor=#000000><BR></TD> <TD width=1 bgColor=#444444><BR></TD> <TD width=2 bgColor=#444444><BR></TD> <TD width=2 bgColor=#444444><BR></TD> <TD width=6 bgColor=#777777><BR></TD> <TD width=6 bgColor=#777777><BR></TD> <TD width=6 bgColor=#777777><BR></TD> <TD width=32 bgColor=#aaaaaa><BR></TD> <TD width=32 bgColor=#aaaaaa><BR></TD> <TD width=32 bgColor=#aaaaaa><BR></TD> <TD width=39 bgColor=#dddddd><BR></TD> <TD width=60 bgColor=#dddddd><BR></TD> <TD width=39 bgColor=#dddddd><BR></TD> <TD width=32 bgColor=#aaaaaa><BR></TD> <TD width=32 bgColor=#aaaaaa><BR></TD> <TD width=32 bgColor=#aaaaaa><BR></TD> <TD width=6 bgColor=#777777><BR></TD> <TD width=6 bgColor=#777777><BR></TD> <TD width=6 bgColor=#777777><BR></TD> <TD width=2 bgColor=#444444><BR></TD> <TD width=2 bgColor=#444444><BR></TD> <TD width=1 bgColor=#444444><BR></TD> <TD width=1 bgColor=#000000><BR></TD> <TD width=1 bgColor=#000000><BR></TD></TR></TBODY></TABLE></CENTER></DIV> <DIV align=center> <CENTER> <P><BR><! --== END OF BAR ==-- ></P></CENTER></DIV> <DIV align=center> <CENTER> <TABLE cellSpacing=0 cellPadding=0 bgColor=#a7bcee border=6> <TBODY> <TR> <TD noWrap align=middle bgColor=#0000a0 colSpan=8><A href="javascript:About()"><SMALL><SMALL><SMALL><FONT color=white size="-1">?/a></FONT></SMALL></SMALL></SMALL></A><FONT color=white size="-1"><B><A href="mailto:bushido49@usa.net">Tony</A>'s JS calculator</B></FONT></TD></TR> <TR> <TD> </TD> <TD align=middle bgColor=#a23bec colSpan=6><INPUT onfocus=complain() maxLength=30 size=25 value=0 name=Input> </TD> <TD> </TD></TR> <TR> <TD> </TD> <TD align=middle bgColor=#00ff00><INPUT onmouseover="self.status=' 7 ';" onclick=input(7) type=button value=" 7 " name=seven> </TD> <TD align=middle bgColor=#00ff00><INPUT onmouseover="self.status=' 8 ';" onclick=input(8) type=button value=" 8 " name=eight> </TD> <TD align=middle bgColor=#00ff00><INPUT onmouseover="self.status=' 9 ';" onclick=input(9) type=button value=" 9 " name=nine> </TD> <TD> </TD> <TD align=middle bgColor=#ff0000><INPUT onmouseover="self.status='Clear';" onclick=Clear() type=button value=CE name=clear> </TD> <TD align=middle><INPUT onmouseover="self.status='delete one charecter from the input feild'" onclick=deleteChar(Calc.Input) type=button value=" <--" name=about> </TD></TR> <TR> <TD> </TD> <TD align=middle bgColor=#00ff00><INPUT onmouseover="self.status=' 4 ';" onclick=input(4) type=button value=" 4 " name=four> </TD> <TD align=middle bgColor=#00ff00><INPUT onmouseover="self.status=' 5 ';" onclick=input(5) type=button value=" 5 " name=five> </TD> <TD align=middle bgColor=#00ff00><INPUT onmouseover="self.status=' 6 ';" onclick=input(6) type=button value=" 6 " name=six> </TD> <TD> </TD> <TD align=middle bgColor=#a23bec><INPUT onmouseover="self.status='Minus'"" onclick="operation('-')" type=button value=" - " name=minus> </TD> <TD align=middle bgColor=#a23bec><INPUT onmouseover="self.status='Plus';" onclick="operation('+')" type=button value=" + " name=plus> </TD></TR> <TR> <TD> </TD> <TD align=middle bgColor=#00ff00><INPUT onmouseover="self.status=' 1 ';" onclick=input(1) type=button value=" 1 " name=one> </TD> <TD align=middle bgColor=#00ff00><INPUT onmouseover="self.status=' 2 ';" onclick=input(2) type=button value=" 2 " name=two> </TD> <TD align=middle bgColor=#00ff00><INPUT onmouseover="self.status=' 3 ';" onclick=input(3) type=button value=" 3 " name=three> </TD> <TD> </TD> <TD align=middle bgColor=#a23bec><INPUT onmouseover="self.status='Multiply';" onclick="operation('*')" type=button value=" x " name=times> </TD> <TD align=middle bgColor=#a23bec><INPUT onmouseover="self.status='Divide';" onclick="operation('/')" type=button value=" / " name=divide> </TD></TR> <TR> <TD> </TD> <TD align=middle bgColor=#00ff00><INPUT onmouseover="self.status='Decimal';" onclick="input('.')" type=button value=" . " name=decimal> </TD> <TD align=middle bgColor=#00ff00><INPUT onmouseover="self.status='Zero';" onclick=input(0) type=button value=" 0 " name=zero> </TD> <TD align=middle bgColor=#a23bec><INPUT onmouseover="self.status='Change sign';" onclick=change_sign(); type=button value=+/- name="change sign"> </TD> <TD> </TD> <TD align=middle bgColor=#0000ff><INPUT onmouseover="self.status='Memory store';" onclick="memsto() ;" type=button value="sto " name="memory store"> </TD> <TD align=middle bgColor=#0000ff><INPUT onmouseover="self.status=mem; " onclick=memR() type=button value="mr " name="memory recal"> </TD> <TD> </TD></TR> <TR> <TD> </TD> <TD align=middle bgColor=#a23bec colSpan=2><INPUT onmouseover="self.status='Equals';" onclick="first() ;" type=button value=" = " name=equals> </TD> <TD align=middle bgColor=#00ff00><INPUT onmouseover="self.status ='3.1416'" onclick=PIE() type=button value=" PI " name=pi> </TD> <TD> </TD> <TD align=middle bgColor=#0000ff><INPUT onmouseover="self.status='memory plus'" onclick=memoryplus() type=button value=M+ name="memory plus"> </TD> <TD align=middle bgColor=#0000ff><INPUT onmouseover="self.status='memory minus';" onclick=memoryminus() type=button value="M- " name="memory minus"> </TD> <TD> </TD></TR> <TR> <TD> </TD> <TD align=middle bgColor=#a23bec><INPUT onmouseover="self.status='cos'" onclick=COS() type=button value=cos name=cos> </TD> <TD align=middle bgColor=#a23bec><INPUT onmouseover="self.status='sin'" onclick=SIN() type=button value=sin name=sin> </TD> <TD align=middle bgColor=#a23bec><INPUT onmouseover="self.status='Square" onclick=square() type=button value=sqrt name=sqrt root?></TD> <TD> </TD> <TD align=middle bgColor=#a23bec><INPUT onmouseover="self.status='TAN'" onclick=TAN() type=button value=tan name=tan> </TD> <TD align=middle bgColor=#a23bec><INPUT onmouseover="self.status='X^2'" onclick=X2() type=button value=x^2 name=x^2> </TD></TR> <TR> <TD> </TD> <TD align=middle bgColor=#a23bec><INPUT onmouseover="self.status='1/x'" onclick=onex() type=button value=1/x name=1/x> </TD> <TD align=middle bgColor=#a23bec><INPUT onmouseover="self.status='absloute" onclick=ABS() type=button value="| x |" name=abs value?> </TD> <TD align=middle bgColor=#a23bec><INPUT onclick=Derricks_A_nimrod() type=button value=x^y name=X^Y> </TD> <TD> </TD> <TD align=middle bgColor=#a23bec><INPUT onclick=paren1() type=button value=" ( " name=paren> </TD> <TD align=middle bgColor=#a23bec><INPUT onclick=paren2() type=button value=" ) " name=paren> </TD> <TD> </TD></TR> <TR> <TD> </TD> <TD align=middle bgColor=#a23bec><INPUT onclick=LOG() type=button value=log name=log> </TD> <TD align=middle bgColor=#a23bec><INPUT onclick=rnd() type=button value=rnd name=round> </TD> <TD align=middle bgColor=#a23bec><INPUT onclick=EXP() type=button value=exp name=exp> </TD> <TD> </TD> <TD align=middle bgColor=#ff0000><INPUT onmouseover="self.status='Memory Clear';" onclick=P_O_S() type=button value="mc " name=memory_clear> </TD> <TD align=middle bgColor=#ff0000><INPUT onmouseover="self.status='All Clear';" onclick=AllClear() type=button value=AC name="all clear"> </TD></TR> <TR> <TD> </TD> <TD align=middle bgColor=#a23bec><INPUT onclick=ATAN() type=button value=ata name=atan> </TD> <TD align=middle bgColor=#a23bec><INPUT onclick=ACOS() type=button value=aco name=acos> </TD> <TD align=middle bgColor=#a23bec><INPUT onclick=ASIN() type=button value=asi name=asin> </TD></TR></TBODY></TABLE></CENTER></DIV></FORM> <SCRIPT> document.write(bank()); document.write(IE()); </SCRIPT> </BODY></HTML>
【点击数:】【
发表评论
】【
加入收藏
】【
告诉好友
】【
打印此文
】【
关闭窗口
】
相
关文章
您的姓名:
评分等级:
1分
2分
3分
4分
5分
评论内容:
1、严禁发表危害国家安全、政治、黄色淫秽等内容的评论。
2、用户需对自己在使用金石网服务过程中的行为承担法律责任。
3、本站管理员有权保留或删除评论内容。
4、评论内容只代表网友个人观点,与本网站立场无关。
时钟显示在任意指定位置
时钟加在背景上
带开关的Form时钟
详细的Form栏特全时钟
Form中的时钟
纯JavaScript时钟
特酷的倒影时钟
网
友评论
|
设为首页
|
加入收藏
|
联系我们
|
版权申明
|
友情链接
|
站点地图
|
网站帮助
|
网站留言
|
广告服务
|
Copyright © 2001-2008
K
ings
N
et.biz All Rights Reserved. 金石工作室 版权所有