|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have a small calculating table that sums up items and may have a negative total.
http://www.literacyexchange.net/cou...ia_b_budget.swf But I would like to have a negative sign, brackets or perhaps a change in color to denote a negative number has been reached(deficit). Thanks for help Alvaro This is the code for the table: function onCalculate() { bud_one = Number(b1); bud_two = Number(b2); bud_three = Number(b3); bud_four = Number(b4); bud_five = 3000; bud_six = Number(b6); bud_seven = Number(b7); bud_eight = Number(b8); bud_nine = Number(b9); budget_rfunds = -(25000-bud_one - bud_two - bud_three - bud_four - bud_five - bud_six - bud_seven - bud_eight - bud_nine); total = bud_one + bud_two + bud_three + bud_four + bud_five + bud_six +bud_seven + bud_eight + bud_nine; } Last edited by alvarohig : February 19th, 2004 at 02:20 AM. |
|
#2
|
|||
|
|||
|
Hi, I can't type minus into any of the text boxes. the minus symbol would show up already if you allowed minus to be typed in and enabled it in the total box. When I say enable I mean say you embedded the font without that symbol, add it to the accepected characters..
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > 4000 - 7500 = - 3500 ? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|