Metachecker.net
|
TrafficChecker.net
|
RankChecker.net
Learn Java Script Today
|
Over 5000 Free Fonts
|
Tutorials
|
Javascript Forum
|
Other Javascript Resources
|
Cheat Sheet
JavaScript Basics
Inserting Javascript
Complete Tutorial
Advance DHTML Tutorial
Script archive
Advanced Tutorials
Alert Scripts
Animation
Audio
Background Effects
Banner Ads
Browser Window
Buttons
Button Forms
Calculcators
Calendars
Clocks & Dates
Cookies
Cursor Effects
DHMTL Games
DHTML Miscellaneous
Equivalents
Forms
Games
IE4+ Scripts
IE5+ Scripts
Image Effects
Image Miscellaneous
Links & Buttons
Math Related
Messages Miscellaneous
Miscellaneous
Mouse Tricks
Navigation
Page Details
Password Protection
Pulldown Menus
Random Stuff
Scrolling
Status Bar
Text Animation
User Detail
User Info
Window Control
Percent Calculator
Don't waste another minute dealing with percent problems. This script will solve both of these for you, just enter the values! What a time-saver!
What is
% of
?
Answer:
Or...
is what percent of
?
Answer:
%
Insert into <HEAD>
<SCRIPT LANGUAGE="JavaScript"> <!-- Original: Tom Richardson Jr. (gooftroop@geocities.com) --> <!-- Begin function calc1(form) { a = form.a.value/100; b = a*form.b.value; form.total1.value = b; } function calc2(form) { a = form.c.value; b = form.d.value; c = a/b; d = c*100; form.total2.value = d; } // End --> </script>
Insert into <BODY>
<center> <form name="form1"> <table border=1 cellpadding=4 cellspacing=1> <tr> <td align=center>What is <input type="text" name="a" size=5> % of <input type="text" name="b" size=5>?</td> <td align=center>Answer: <input type="text" name="total1" size=5 maxlength=40></td> <td align=center><input type="button" value="Calculate" onClick="calc1(this.form)"></td> </tr> <tr> <td align=center colspan=3 align=center>Or...</td> </tr> <tr> <td align=center><input type="text" name="c" size=5> is what percent of <input type="text" name="d" size=5>?</td> <td align=center>Answer: <input type="text" name="total2" size=5> %</td> <td align=center><input type="button" value="Calculate" onClick="calc2(this.form)"></td> </tr> </table> </form> </center>
Other Options