ورود

View Full Version : ماشین حساب در vbscript



leilast
دوشنبه 11 آذر 1387, 12:49 عصر
سلام
من قصد طراحی یک ماشین حساب ساده رو تو vbscriptدارم.
اما عملیات روی دکمه هام جواب نمیده و دستوراتم ایراد داره.
طراحی جدول ودکمه ها اینطوریه


<html>
<head>
<title>calculator</title>
<script language"vbscript">




</script>
<body>


<table borde=1 bgcolor=535334>
<tr><th colspan=4><input type=text name=display ></th></tr>

<td><input name=one type=button value="1" onclick="1"></td>
<td><input type=button name=two value="2" onclick="2"></td>
<td><input type=button name=three value="3" onclick="3"></td>
<td><input type=button name=minus value="-" onclick="-"></td>
</tr><tr>
<td><input type=button name=four value="4" onclick="4"></td>
<td><input type=button name=five value="5" onclick="5"></td>
<td><input type=button name=six value="6" onclick="6"></td>
<td><input type=button name=multiply value="*" onclick="*"></td>
</tr>
<tr>
<td><input type=button name=seven value="7" onclick="7"></td>
<td><input type=button name=eight value="8" onclick="8"></td>
<td><input type=button name=nine value="9" onclick="9"></td>
<td><input type=button name=divide value="/" onclick="/"></td>
</tr>
<tr>

<td><input type=button name=zero value="0" onclick="0"></td>
<td></td>

<td><input type=button name=equals value="=" onclick="="></td>
<td><input type=button name=plus value="+" onclick="+"></td>
</td>


</tr></td></table>
</html>



/ (http://barnamenevis.org/forum/misc.php?do=bbcode#html) l



میتونید تو نوشتن کد روی دکمه ها کمکم کنید؟:لبخندساده:

leilast
سه شنبه 12 آذر 1387, 18:27 عصر
می تونید یه منبع در این مورد یا کلا آموزش vbscript (البته فارسی) معرفی کنید؟

milade
سه شنبه 12 آذر 1387, 18:36 عصر
سلام
عزیز با جاوا کد هست بگرد تو گوگل
اگه هم با vb می خوای شاید و شاید اگه خواستی بدمت(بسازم)
موفق باشی