return to tranceaddict TranceAddict Forums Archive > Main Forums > Chill Out Room

 
JavaScript Help
View this Thread in Original format
lucasp_10
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)













lucasp_10
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)












:wtf:
igottaknow
Could this possible be a school project? :stongue: I'll give you a hint is the semicolon key on your keyboard broken? :conf: There are lots of calculator code floating round teh net...
lucasp_10
lol ive finsihed school

and ive looked on the net, but nothing to what i want
lucasp_10
ok thanks for the help mate
lucasp_10
wow thanks man!!!

thats great help

thanks alot mate:) :) :D

uve help alot
itsTrueSonic
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......
CLICK TO RETURN TO TOP OF PAGE
 
Privacy Statement