TranceAddict Forums

TranceAddict Forums (www.tranceaddict.com/forums)
- Chill Out Room
-- JavaScript Help


Posted by lucasp_10 on Sep-01-2004 00:16:

JavaScript Help

hey, i want to get a calculator that includes the hours of pay, but im not to sure on how to do it....it needs to calculate the wage based on the hours worked and pay.....anyone know how i can add this into my code? mayne thanks

here is my code:



Wages






Herriard Pty Ltd


Wages Calculation








Hours Worked:

Hourly Rate:
($15 to $30)














Posted by lucasp_10 on Sep-01-2004 00:17:

sorry forgot that it willa dd it in

here is my code:



function processInput(txtNumber,areaOutput)
{
var number
var msg = ""
var ok = true

number = parseFloat(txtNumber.value)


if(isNaN(number))
{
msg="number must be numeric - please re-enter"
ok = false
}

if(ok){
if (number < 10)
{
msg += "Hours worked must be at least 10!!"
}
else if (number >= 60)
{
msg += "Hours worked must not be over 60"
}

areaOutput.value = msg
}

}







Herriard Pty Ltd


Wages Calculation








Hours Worked:

Hourly Rate:
($15 to $30)













Posted by igottaknow on Sep-01-2004 00:26:

Could this possible be a school project? I'll give you a hint is the semicolon key on your keyboard broken? There are lots of calculator code floating round teh net...


Posted by lucasp_10 on Sep-01-2004 00:29:

lol ive finsihed school

and ive looked on the net, but nothing to what i want


Posted by lucasp_10 on Sep-01-2004 00:38:

ok thanks for the help mate


Posted by lucasp_10 on Sep-01-2004 01:39:

wow thanks man!!!

thats great help

thanks alot mate

uve help alot


Posted by itsTrueSonic on Sep-01-2004 02:33:

wow .. it's probably something Swamper or vBulletin was tweeking around ..

that's pretty cool ..

i wonder if it would accept META keywords and fso objects for scripting ??

hmmm......



Powered by: vBulletin
Copyright © 2000-2021, Jelsoft Enterprises Ltd.