Selasa, 25 Desember 2012

Cara Memasang Kalkulator di Blog



bagi yang udah pasang kalkulatornya... klik edit aja pada widgetnya kemudian blok semua kode dan copy paste lalu save..
Berikut cara memasang Kalkulator: 



<form name="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 += &#39;1&#39;" />
<input type="button" name="two" value="  2  " onclick="Calc.Input.value += &#39;2&#39;" />
<input type="button" name="three" value="  3  " onclick="Calc.Input.value += &#39;3&#39;" />
<input type="button" name="plus" value="  +  " onclick="Calc.Input.value += &#39; + &#39;" />
<br />
<input type="button" name="four" value="  4  " onclick="Calc.Input.value += &#39;4&#39;" />
<input type="button" name="five" value="  5  " onclick="Calc.Input.value += &#39;5&#39;" />
<input type="button" name="six" value="  6  " onclick="Calc.Input.value += &#39;6&#39;" />
<input type="button" name="minus" value="  -  " onclick="Calc.Input.value += &#39; - &#39;" />
<br />
<input type="button" name="seven" value="  7  " onclick="Calc.Input.value += &#39;7&#39;" />
<input type="button" name="eight" value="  8  " onclick="Calc.Input.value += &#39;8&#39;" />
<input type="button" name="nine" value="  9  " onclick="Calc.Input.value += &#39;9&#39;" />
<input type="button" name="times" value="  x  " onclick="Calc.Input.value += &#39; * &#39;" />
<br />
<input type="button" name="clear" value="  c  " onclick="Calc.Input.value = &#39;&#39;" />
<input type="button" name="zero" value="  0  " onclick="Calc.Input.value += &#39;0&#39;" />
<input type="button" name="DoIt" value="  =  " onclick="Calc.Input.value = eval(Calc.Input.value)" />
<input type="button" name="div" value="  /  " onclick="Calc.Input.value += &#39; / &#39;" />
<br />
</td>
</tr>
</table>
</form>


hasilnya :

2 komentar: