Become a part of the TranceAddict community!Frequently Asked Questions - Please read this if you haven'tSearch the forums
TranceAddict Forums > Main Forums > Chill Out Room > JavaScript Help
  Last Thread   Next Thread
Share
Author
Thread    Post A Reply
lucasp_10
tranceaddict



Registered: Apr 2004
Location: Australia
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)













Old Post Sep-01-2004 00:16  Australia
Click Here to See the Profile for lucasp_10 Click here to Send lucasp_10 a Private Message Add lucasp_10 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
lucasp_10
tranceaddict



Registered: Apr 2004
Location: Australia

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)












Old Post Sep-01-2004 00:17  Australia
Click Here to See the Profile for lucasp_10 Click here to Send lucasp_10 a Private Message Add lucasp_10 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
igottaknow
PerfectTeeth R4 Dinosaurs



Registered: Feb 2001
Location: The Future

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...


___________________
GIGANTIC CUNT

Old Post Sep-01-2004 00:26 
Click Here to See the Profile for igottaknow Click here to Send igottaknow a Private Message Add igottaknow to your buddy list Report this Post Reply w/Quote Edit/Delete Message
lucasp_10
tranceaddict



Registered: Apr 2004
Location: Australia

lol ive finsihed school

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

Old Post Sep-01-2004 00:29  Australia
Click Here to See the Profile for lucasp_10 Click here to Send lucasp_10 a Private Message Add lucasp_10 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
lucasp_10
tranceaddict



Registered: Apr 2004
Location: Australia

ok thanks for the help mate

Old Post Sep-01-2004 00:38  Australia
Click Here to See the Profile for lucasp_10 Click here to Send lucasp_10 a Private Message Add lucasp_10 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
lucasp_10
tranceaddict



Registered: Apr 2004
Location: Australia

wow thanks man!!!

thats great help

thanks alot mate

uve help alot

Old Post Sep-01-2004 01:39  Australia
Click Here to See the Profile for lucasp_10 Click here to Send lucasp_10 a Private Message Add lucasp_10 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
itsTrueSonic
NullPointerException



Registered: Aug 2003
Location:

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......

Old Post Sep-01-2004 02:33  Afghanistan
Click Here to See the Profile for itsTrueSonic Click here to Send itsTrueSonic a Private Message Add itsTrueSonic to your buddy list Report this Post Reply w/Quote Edit/Delete Message

TranceAddict Forums > Main Forums > Chill Out Room > JavaScript Help
Post New Thread    Post A Reply

 
Last Thread   Next Thread
Click here to listen to the sample!Pause playbackUnknown Remix of "Bonicio - For the Love of You" [2005] [2]

Click here to listen to the sample!Pause playbackSoliquid - Rock It! [2005]

Show Printable Version | Subscribe to this Thread
Forum Jump:

All times are GMT. The time now is 16:49.

Forum Rules:
You may not post new threads
You may not post replies
You may not edit your posts
HTML code is ON
vB code is ON
[IMG] code is ON
 
Search this Thread:

 
Contact Us - return to tranceaddict

Powered by: Trance Music & vBulletin Forums
Copyright ©2000-2026, Jelsoft Enterprises Ltd.
Privacy Statement / DMCA
Support TA!