Tuesday, July 10, 2012

မိမိ Bolgger ေပၚမွာ Calculator ေလးသုံးခ်င္ရင္


မဂၤလာပါဗ်ာ ဒီေန႔ေတာ႔ Bolgger ခ်စ္သူေတြအတြက္ ေနာက္တစ္ခု လာၿပန္ၿပီးဗ်ာ ဒါကေတာ႔ Calculator ပါဗ်ာ ဘာၿဖစ္ၿဖစ္ မိမိဘေလာ႔ဂါမွာ တပ္ဆင္ထားေတာ႔ လုိကာမယ္ကာ တြက္ခ်က္လုိရတာေပါ႔ဗ်ာ အေရးနဲ႔အေႀကာင္းနဲ႔ဆုိ ေခါင္းစားစရာမလုိပဲ ႏွိပ္လုိက္ယုံေပါ႔ဗ်ာဟီးဟီး.. "ဟုတ္တယ္ဗ်ာ"ကြ်န္ေတာ္တုိ႔ဦးေႏွာက္ေတြဆုိ စက္ကုိပဲ အားကုိးမ်ားလုိ႔လား မသိဘူးဗ်ာ ႀကာလာေလ တုံးလာေလပဲဗ်ာ ဒုိင္ခနဲဆုိ ဘာမွာမသိဘူးေတာ႔ဗ်ာ ဘာေၿပာေၿပာ အပ်င္းႀကီးတဲ႔ ကြ်န္ေတာ္တုိ႔လုိ လူေတြအတြက္ေတာ႔ OK ပဲဗ်ာ ကုိယ္ေပါင္ကုိယ္လွန္ေနလုိ႔ မၿပီးေတာ႔ဘူးဗ်ာဟီးဟီး.....စႀကမယ္ေနာ္......

ထုံစံအတုိင္း ပုံတြင္ၿပထားသည္႔အတုိင္းလုပ္ေဆာင္ေပးပါဗ်ာ







<form name="Calc" id="Calc">
<table border="4">
<tr>
<td>
  <input type="text"   name="Input" size="20" />
<br /></td>
</tr>
<tr>
<td>
  <input type="button" name="one"   value="  1  " onclick="Calc.Input.value += '1'" />
  <input type="button" name="two"   value="  2  " onclick="Calc.Input.value += '2'" />
  <input type="button" name="three" value="  3  " onclick="Calc.Input.value += '3'" />
  <input type="button" name="plus"  value="  +  " onclick="Calc.Input.value += ' + '" />
<br />
<input type="button" name="four"  value="  4  " onclick="Calc.Input.value += '4'" />
<input type="button" name="five"  value="  5  " onclick="Calc.Input.value += '5'" />
<input type="button" name="six"   value="  6  " onclick="Calc.Input.value += '6'" />
<input type="button" name="minus" value="  -  " onclick="Calc.Input.value += ' - '" />
<br />
<input type="button" name="seven" value="  7  " onclick="Calc.Input.value += '7'" />
<input type="button" name="eight" value="  8  " onclick="Calc.Input.value += '8'" />
<input type="button" name="nine"  value="  9  " onclick="Calc.Input.value += '9'" />
<input type="button" name="times" value="  x  " onclick="Calc.Input.value += ' * '" />
<br />
<input type="button" name="clear" value="  c  " onclick="Calc.Input.value = ''" />
<input type="button" name="zero"  value="  0  " onclick="Calc.Input.value += '0'" />
<input type="button" name="DoIt"  value="  =  " onclick="Calc.Input.value = eval(Calc.Input.value)" />
<input type="button" name="div"   value="  /  " onclick="Calc.Input.value += ' / '" />
<br /></td>
</tr>
</table>
</form>

0 comments:

Post a Comment