ဒီPostေလးကHtmlCodeကိုဝါသနာပါတဲ့ဘေလာမိတ္ေဆြေတြအတြက္ပိုျပီးအေရးၾကီးပါတယ္။ Calculatorရဲ႕အေျခခံHtmlCodeေလးပါ။ေအာက္မွာပံုနဲ႕တကြCodeရွိပါတယ္။ ဘေလာ့မိတ္ေဆြအားလံုးကိုခင္မင္ေလးစားလွ်က္kp3မိသားစု
<form name="Calc" id="Calc"> <table border="4"> <tr> <td> <input type="text" name="Input" size="16" /> <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>မသိေသးတဲ့သူေတြကိုအသိေပးေ၀မွ်ေစခ်င္ပါတယ္။
ဘေလာ့ဂါမိတ္ေဆြအားလံုးကိုခင္မင္ေလးစားလွ်က္KP-3 မိသားစု
0 comments:
Post a Comment
မွတ္ခ်က္မ်ားကို စိစစ္ၿပီးမွ ေဖာ္ျပေပးမည္ ျဖစ္ပါသျဖင့္ ဤစာမ်က္ႏွာေပၚမွာ ခ်က္ခ်င္း ျမင္ရမည္မဟုတ္ပါ။ မၾကာခင္ ေနာက္တခါ ျပန္လာၿပီး မိမိ၏ မွတ္ခ်က္ကို ျပန္ၾကည့္ပါရန္ ေမတၲာရပ္ခံပါသည္။