Graficka kalkulacka

ID
Nazov / Name:
Popis / Description:
Dlzka / Length:
Testovane pod / Tested under:

 

139
p139.html / p139.zip
Jednoducha graficka kalkulacka
2184b
NN 4.04, IE 4.0

UKAZKA / CLICK HERE

Zdrojovy tvar / Source code:

<HTML> <HEAD> <TITLE>JavaScript DESTINATION - P139</TITLE> <SCRIPT Language="JavaScript"> <!-- function compute() { document.evalform.result.value = eval(document.evalform.expr.value) } function visa(n) { document.evalform.expr.value = document.evalform.expr.value + n } function clean() { var psj=0; document.evalform.expr.value = ''; } function pi(){ alert("I like PI!"); } // --> </SCRIPT> </head> <BODY> <FORM NAME="evalform"> <PRE> Vloz vyraz: <INPUT TYPE=text NAME="expr" SIZE=23> Vysledok: <INPUT TYPE=text NAME="result" SIZE=23> <INPUT TYPE="button" VALUE="Reset" onClick="clean()"> </PRE> <img alt="Calculator" src="images/calcb.gif" usemap="#Calc" align=left border=0> <MAP NAME="Calc"> <AREA SHAPE="rect" COORDS="159,300,236,324" HREF="JavaScript:compute()"> <AREA SHAPE="rect" COORDS="70,155,104,179" HREF="JavaScript:visa(Math.PI)"> <AREA SHAPE="rect" COORDS="114,155,149,179" HREF="JavaScript:visa('(')"> <AREA SHAPE="rect" COORDS="158,155,192,179" HREF="JavaScript:visa(')')"> <AREA SHAPE="rect" COORDS="202,154,236,181" HREF="JavaScript:visa('/')"> <AREA SHAPE="rect" COORDS="69,190,105,216" HREF="JavaScript:visa('7')"> <AREA SHAPE="rect" COORDS="113,190,149,216" HREF="JavaScript:visa('8')"> <AREA SHAPE="rect" COORDS="157,190,193,216" HREF="JavaScript:visa('9')"> <AREA SHAPE="rect" COORDS="201,190,236,216" HREF="JavaScript:visa('*')"> <AREA SHAPE="rect" COORDS="69,226,105,253" HREF="JavaScript:visa('4')"> <AREA SHAPE="rect" COORDS="113,226,149,252" HREF="JavaScript:visa('5')"> <AREA SHAPE="rect" COORDS="157,225,193,253" HREF="JavaScript:visa('6')"> <AREA SHAPE="rect" COORDS="201,225,236,252" HREF="JavaScript:visa('-')"> <AREA SHAPE="rect" COORDS="69,262,105,289" HREF="JavaScript:visa('1')"> <AREA SHAPE="rect" COORDS="113,262,149,289" HREF="JavaScript:visa('2')"> <AREA SHAPE="rect" COORDS="157,262,193,289" HREF="JavaScript:visa('3')"> <AREA SHAPE="rect" COORDS="202,262,236,289" HREF="JavaScript:visa('+')"> <AREA SHAPE="rect" COORDS="70,299,106,325" HREF="JavaScript:visa('0')"> <AREA SHAPE="rect" COORDS="114,299,149,325" HREF="JavaScript:visa('.')"> </MAP> </form> </body> </html>
[ Navrat / BACK ]