Admin المدير العام - منتديات ريماس المحبة
عدد المساهمات : 1651 النقاط : 0 تاريخ التسجيل : 09/04/2012 العمر : 44 الموقع : فلسطين-نابلس
| موضوع: كود لعمل الة حاسبة الخميس أغسطس 23, 2012 9:44 pm | |
| - الكود:
-
[color=#008000]<!-- TWO STEPS TO INSTALL 5 FUNCTION CALCULATOR: 1. Paste the coding into the HEAD of your HTML document 2. Add the last code into the BODY of your HTML document -->[/color] [color=green]<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->[/color] [color=green]<HEAD>[/color] [color=green]<SCRIPT LANGUAGE="JavaScript">[/color] [color=green]<!-- Original: Rick Johnson --> <!-- Web Site: [url=http://albdr.com/~RickJohnson][color=#8d38c9]http://albdr.com/~RickJohnson[/color][/url] -->[/color] [color=green]<!--Total Java Scripts 99 - Next Step Software-->[/color] [color=green]<!-- Begin function a_plus_b(form) { a=eval(form.a.value) b=eval(form.b.value) c=a+b form.ans.value = c } function a_minus_b(form) { a=eval(form.a.value) b=eval(form.b.value) c=a-b form.ans.value=c } function a_times_b(form) { a=eval(form.a.value) b=eval(form.b.value) c=a*b form.ans.value=c } function a_div_b(form) { a=eval(form.a.value) b=eval(form.b.value) c=a/b form.ans.value = c } function a_pow_b(form) { a=eval(form.a.value) b=eval(form.b.value) c=Math.pow(a, b) form.ans.value = c } // End --> </SCRIPT>[/color] [color=green]<!-- STEP TWO: Put this code into the BODY of your HTML document -->[/color] [color=green]<BODY> <!-- START HOME FREE HEADER CODE -->[/color] [color=green]<html>[/color] [color=green]<head>[/color] [color=green] <meta http-equiv="Content-Type" content="text/html; charset=windows-1256"> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <title>شبكة الضيافة - d1d.net </title> </head>[/color] [color=green]</html>[/color] [color=green]<!-- END HOME FREE HEADER CODE -->[/color] [color=green]<CENTER> <FORM name="formx"><input type=text size=4 value=12 name="a"> <input type="button" value=" + " onClick="a_plus_b(this.form)"> <input type="button" value=" - " onClick="a_minus_b(this.form)"> <input type="button" value=" x " onClick="a_times_b(this.form)"> <input type="button" value=" / " onClick="a_div_b(this.form)"> <input type="button" value=" ^ " onClick="a_pow_b(this.form)"> <input type="number" size=4 value=3 name="b"> = <input type "number" value=0 name="ans" size=9> </FORM> </CENTER>[/color] [color=green]<!-- Script Size: 1.72 KB -->[/color]
| |
|