<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>
Calculator
Labels:
Javascript Program
Subscribe to:
Post Comments (Atom)
Labels
- Javascript Program (19)
- Software (11)
13 comments:
Cooolll.. Nice work
*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
Ύ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
+ 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
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/)
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/]
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
Calculator >>>>> Download Now
>>>>> Download Full
Calculator >>>>> Download LINK
>>>>> Download Now
Calculator >>>>> Download Full
>>>>> Download LINK
samsun
urfa
uşak
van
yalova
WT4BC
manisa
sakarya
sivas
van
elazığ
DMTC
ankara parça eşya taşıma
takipçi satın al
antalya rent a car
antalya rent a car
ankara parça eşya taşıma
XUC2
23C12
Antep Lojistik
Kayseri Parça Eşya Taşıma
Eskişehir Evden Eve Nakliyat
Siirt Parça Eşya Taşıma
Adıyaman Parça Eşya Taşıma
944D0
Erzincan Şehirler Arası Nakliyat
Antalya Rent A Car
Tunceli Parça Eşya Taşıma
Kırşehir Şehirler Arası Nakliyat
Çerkezköy Ekspertiz
Denizli Parça Eşya Taşıma
Kırklareli Şehir İçi Nakliyat
Bayburt Parça Eşya Taşıma
Osmaniye Parça Eşya Taşıma
Post a Comment