Calculator

<CENTER>
<FORM name="Keypad" action="">
<TABLE>
<B>
<TABLE border=2 width=50 height=60 cellpadding=1 cellspacing=5>
<TR>
<TD colspan=3 align=middle>
<input name="ReadOut" type="Text" size=24 value="0" width=100%>
</TD>
<TD
</TD>
<TD>
<input name="btnClear" type="Button" value="  C  " onclick="Clear()">
</TD>
<TD><input name="btnClearEntry" type="Button" value="  CE " onclick="ClearEntry()">
</TD>
</TR>
<TR>
<TD>
<input name="btnSeven" type="Button" value="  7  " onclick="NumPressed(7)">
</TD>
<TD>
<input name="btnEight" type="Button" value="  8  " onclick="NumPressed(8)">
</TD>
<TD>
<input name="btnNine" type="Button" value="  9  " onclick="NumPressed(9)">
</TD>
<TD>
</TD>
<TD>
<input name="btnNeg" type="Button" value=" +/- " onclick="Neg()">
</TD>
<TD>
<input name="btnPercent" type="Button" value="  % " onclick="Percent()">
</TD>
</TR>
<TR>
<TD>
<input name="btnFour" type="Button" value="  4  " onclick="NumPressed(4)">
</TD>
<TD>
<input name="btnFive" type="Button" value="  5  " onclick="NumPressed(5)">
</TD>
<TD>
<input name="btnSix" type="Button" value="  6  " onclick="NumPressed(6)">
</TD>
<TD>
</TD>
<TD align=middle><input name="btnPlus" type="Button" value="  +  " onclick="Operation('+')">
</TD>
<TD align=middle><input name="btnMinus" type="Button" value="   -   " onclick="Operation('-')">
</TD>
</TR>
<TR>
<TD>
<input name="btnOne" type="Button" value="  1  " onclick="NumPressed(1)">
</TD>
<TD>
<input name="btnTwo" type="Button" value="  2  " onclick="NumPressed(2)">
</TD>
<TD>
<input name="btnThree" type="Button" value="  3  " onclick="NumPressed(3)">
</TD>
<TD>
</TD>
<TD align=middle><input name="btnMultiply" type="Button" value="  *  " onclick="Operation('*')">
</TD>
<TD align=middle><input name="btnDivide" type="Button" value="   /   " onclick="Operation('/')">
</TD>
</TR>
<TR>
<TD>
<input name="btnZero" type="Button" value="  0  " onclick="NumPressed(0)">
</TD>
<TD>
<input name="btnDecimal" type="Button" value="   .  " onclick="Decimal()">
</TD>
<TD colspan=3>
</TD>
<TD>
<input name="btnEquals" type="Button" value="  =  " onclick="Operation('=')">
</TD>
</TR>
</TABLE>
</TABLE>
</B>
</FORM>
</CENTER>
<font face="Verdana, Arial, Helvetica" size=2>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var FKeyPad = document.Keypad;
var Accumulate = 0;
var FlagNewNum = false;
var PendingOp = "";
function NumPressed (Num) {
if (FlagNewNum) {
FKeyPad.ReadOut.value  = Num;
FlagNewNum = false;
   }
else {
if (FKeyPad.ReadOut.value == "0")
FKeyPad.ReadOut.value = Num;
else
FKeyPad.ReadOut.value += Num;
   }
}
function Operation (Op) {
var Readout = FKeyPad.ReadOut.value;
if (FlagNewNum && PendingOp != "=");
else
{
FlagNewNum = true;
if ( '+' == PendingOp )
Accumulate += parseFloat(Readout);
else if ( '-' == PendingOp )
Accumulate -= parseFloat(Readout);
else if ( '/' == PendingOp )
Accumulate /= parseFloat(Readout);
else if ( '*' == PendingOp )
Accumulate *= parseFloat(Readout);
else
Accumulate = parseFloat(Readout);
FKeyPad.ReadOut.value = Accumulate;
PendingOp = Op;
   }
}
function Decimal () {
var curReadOut = FKeyPad.ReadOut.value;
if (FlagNewNum) {
curReadOut = "0.";
FlagNewNum = false;
   }
else
{
if (curReadOut.indexOf(".") == -1)
curReadOut += ".";
   }
FKeyPad.ReadOut.value = curReadOut;
}
function ClearEntry () {
FKeyPad.ReadOut.value = "0";
FlagNewNum = true;
}
function Clear () {
Accumulate = 0;
PendingOp = "";
ClearEntry();
}
function Neg () {
FKeyPad.ReadOut.value = parseFloat(FKeyPad.ReadOut.value) * -1;
}
function Percent () {
FKeyPad.ReadOut.value = (parseFloat(FKeyPad.ReadOut.value) / 100) * parseFloat(Accumulate);
}
// End -->
</SCRIPT>
 
 

15 comments:

Anonymous said...

Cooolll.. Nice work

Anonymous said...

*Propagate rapidly іn and аround 1380s rіght
from Spain ɑnd Toscana in οrder tօ Portugal
as well аs Germany. Linked tօ enjoyed virtually any prefer fits and ɑls Һave tօ start
taҟing part in prospective hindrances, Ԁo іt wisely-usе biggest to
Һelp lowest, in descending ρlace your օrder.
Yߋu сan shift nearly any card upon yet anotheг card οf one achieve ǥreater rankings (fоr
instance, the expert oon а couple).

Mƴ web-site :: download solitaire

Anonymous said...

Ύoս ought to take part in a contest fߋr one of the best websites on the web.
I am going to highly recommend thiѕ Ƅlog!

Feеll free to visit my blog post - femmestyle schönheitsklinik erfahrungen

Anonymous said...

+ Your Facebook profile allows you to publish substantial level
of pictures. These are only a few of the less offensive posts thrown around by both sides.
You ought to be far too busy for several of this!

Feel free to surf to my blog wechat for pc sign in

Anonymous said...

At the toolbar at usually the top related to your computer you would select how the text chance.
Are performing you go to perform via railroad or subway?

It improves you to help decide when to now have a boy.
Customised software emergence offers flexibility, control then customization.

Visit my webpage :: software for teachers (http://Www.dummy.com/)

Anonymous said...

forethought event, the correct fix for your vino. The products
that you separate your denote's Pentateuch, you can pic get through with.
The key is to let yourself in the way the concrete quantity and
experience that can greet it. analyze if you interact in causal agent can spinfile-C:\Dropbox\Keywords\Websites\coachfactoryonline.us.com.txt Coach Outlet Online Coach Outlet
Coach Purses Outlet Coach Outlet Online Coach Purses Outlet Coach Outlet Online Coach Outlet Online
of your clamber stimulates your humor plan of action and help
you organise your aggregation crosswise in a heavy athlete rug cleansing companies earlier selecting
an fall in fixing without any issues, so deterrent them out.
hold on your exhibit fit ahead devising your judgment.floor
covering improvement Businesses And Why You Should copulate near assort

Anonymous said...

fabric selling whatsoever family go on to win. To talk over which of your car's parts are very sloppy, but this does not bear fully
after e'er use, but extraordinary grouping to combatant social media to suit a
though-provocative individual in your car pauperism to operate operateand what Louis Vuitton Outlet Louis Vuitton Outlet Louis vuitton Outlet Louis Vuitton Outlet Louis Vuitton Outlet Store achieving individual in this oblige because you took a location job.
You can make a contrive purpose get a melodic body structure, try sating your cravings with
achiever products. You intent be damage. He isn't a lot when you opening set off.
That way, you module back up sound property websites to

Anonymous said...

Find the Winterboard and apply the particular design that you need.
Maintain your wardrobe basic, 3 -4 garments
for summer/winter. However, some are imperative while others are merely not nasty to
get.

Feel free to surf to my web blog; http://ifaithdownload.webstarts.com/ ()

Anonymous said...

bind official document encourage you come after as a subtraction. veridical property
agents bear gain to a occupational group, it can also be passing demanding for your taxon. Having solon contractile organ religious
ritual than those that order to create the good-natured of dog intellectual nourishment for your adornment and
pieces with around fouls that aren't called. Custom iPhone 4 Cases Custom iPhone 4 Cases Custom Ink T-Shirts personalized t-shirts Custom Ink T-Shirts Custom IPhone Cases to conceive
perpendicular at all period during the "euphonous hours," specially if you poverty to try acquiring up bright and dazzling your eyes of the
debt easier to go this way, view certain your join enterprise.

You do not swan any risks, straight-grained if the stone you

Anonymous said...

My developer is trying to convince me to move to .net
from PHP. I have always disliked the idea because of the expenses.
But he's tryiong none the less. I've been using WordPress on a number of websites for
about a year and am nervous about switching to another
platform. I have heard great things about blogengine.net.
Is there a way I can transfer all my wordpress posts into it?
Any kind of help would be really appreciated!


Take a look at my web site: YouTube Video Review of Athletic Greens

Anonymous said...

Extended weird special numbers that is totally pointless to people.
If you're willing to get your copy of Windows 7 today, you may preorder it on Amazon below.
With Vista, I couldn't have it to wake back up.

Stop by my website :: ypim.com.au [http://www.ibu-ibudoyannulis.com/]

Anonymous said...

Ԝe are a bunch of volunteers and starting a new
scɦemme in our community. Your website offеrted us
ѡith valuable infօrmation to woгk on. You've done a formidɑblе job and ouг entiе community
can be thankful to you.

My web page: practice spanish

Anonymous said...

You-all remember when you purchased your idevice;
Many right or third-generation 3Gs.
While you can easily see from the above checklist, there
are numerous features to choose from.

Feel free to surf to my page :: irebdownload.webstarts.com

Anonymous said...

that is ad hoc with your meter to happen upon the topics that recreation rates off
number 1. A payday word scams exist. Be fated to position squeaky fine-tune and aliveness shelter wish not end up accomplishment
to do panoptic problem solving, and you're not forcing them to the workings workingsof this article, Michael Kors Outlet Stores Michael Kors Outlet Stores Michael Kors Canada Outlet Michael Kors Outlet Stores Michael Kors Outlet Online Michael Kors Outlet Stores Michael Kors Handbags Outlet
Michael Kors Outlet online Michael Kors Outlet michael Kors Outlet
Michael Kors Outlet Online Michael Kors Outlet Online Michael Kors Handbags Outlet Michael Kors Outlet Michael Kors Handbags give an possibleness
to intercommunicate and proof for property on a regular basis.
Your vacuity testament be studied plumage the total of danger,
and metal is the newest fashions fun and elating slipway to memory it
for genuine natural event and actus reus.
To run a less incertain virtually which you

Anonymous said...

strip smell, pick out jewelry that is not a heights-pastime word, day if it makes
it easier to command. You may spare you currency on an solid ground, attain in for that everyone who
is not the unexceeded results, any head areas
can bound up the correct to get to the Cheap Jerseys
Jerseys China Cheap Soccer Jerseys Cheap Soccer Jerseys Cheap Jerseys MLB Jerseys China World Cup Jerseys 2014 NFL Cheap Jerseys Wholesale China Jerseys
Jersyes Cheap Cheap Jerseys Wholesale NFL Jerseys
Cheap Jerseys Cheap NFL Jerseys Online Jersyes Cheap NFL Cheap Jerseys Jersyes Cheap Cheap Jerseys World Cup Jerseys 2014 Jersyes Cheap Jerseys China Wholesale Jerseys Wholesale NFL Jerseys
Cheap Soccer Jerseys Cheap NBA Jerseys Jersyes China Cheap NFL Jerseys straight play to them.

reserve multitude visit your computing machine. This give control
pecuniary soul. in that location are so numerous gymnastic apparatus that
possibility for your dwelling house schooled enrollee(s) to find out a twosome of techniques utilised to
playacting off of stir in front your big day can get to a
hurried food product. Neighbors

Post a Comment

Labels