Click to See Complete Forum and Search --> : I am trying to make...
RavenMist
01-11-2004, 03:19 PM
a javascript program of a couculater for school.
Like just with plus, minus, division, subraction
How would i do it?
(i don't want the actual program just HOW to do it
plus i am new the this and i am only 12...13 next month)
ray326
01-11-2004, 03:56 PM
Wow, that's quite an adventurous project! I'm not sure where to start with the "how" so I'll just tell you some things you need to know to get started.
1. You need to know how a web page is constructed; things like it has a head section and a body section.
2. You need to know about forms, buttons, text boxes and using the buttons' onclick handlers (Javascript functions that are called when the buttons are pressed).
3. All the "guts" of the calculator will go into a Javascript <script> section in the head and all the visible stuff will go into a <form> in the body.
If that's too simple or not what you're looking for just keep posting till we get it right. :)
TheBearMay
01-12-2004, 07:43 AM
Several examples here:
http://javascript.internet.com/calculators/
aommaster
01-12-2004, 07:54 AM
Yeah, it's not very easy to actually MAKE your own calculator, the link above gives some scripts that you can just copy and paste into the HTML of the webpage. It's the easiest, fastest and the best way to do it, in my opinion!