<center>
<table bgcolor="lightblue" cellpadding="10" border="3">
<tr>
<td colspan=2 bgcolor="#006600">
<center>
<font color="cyan" size="4"><b>
Samar's Calculator
</b></font>
</center>
<!-- Copyright Samar Abbas, 14th August 2000
http://www.oocities.org/samarstan -->
</td>
</tr>
<tr>
<td colspan=2 bgcolor="lightblue">
<form name="form">
<center>
<input type="text" name="txt" size="20">
</center>
</td>
</tr>
<tr>
<td bgcolor="lightgreen">
<input type="button" value=" 1 " onClick="form.txt.value += '1' ">
<input type="button" value=" 2 " onClick="form.txt.value += '2' ">
<input type="button" value=" 3 " onClick="form.txt.value += '3' ">
<br>
<input type="button" value=" 4 " onClick="form.txt.value += '4' ">
<input type="button" value=" 5 " onClick="form.txt.value += '5' ">
<input type="button" value=" 6 " onClick="form.txt.value += '6' ">
<br>
<input type="button" value=" 7 " onClick="form.txt.value += '7' ">
<input type="button" value=" 8 " onClick="form.txt.value += '8' ">
<nput type="button" value=" 9 " onClick="form.txt.value += '9' ">
</td>
<td bgcolor="beige">
<input type="button" value=" C " onClick="form.txt.value = ' ' ">
<input type="button" value=" = "
onClick="form.txt.value = eval(form.txt.value)">
<br>
<input type="button" value=" + " onClick="form.txt.value += '+' ">
<input type="button" value=" - " onClick="form.txt.value += '-' ">
<br>
<input type="button" value=" x " onClick="form.txt.value += '*' ">
<input type="button" value=" / " onClick="form.txt.value += '/' ">
</form>
</td>
</tr>
</table>
</center>
|