How is this made using Javascript? FutHead Tax Calculator

Discussion in 'JavaScript' started by Master K, Mar 2, 2013.

  1. #1
    Hi, I have an site called FutClub In The Reviews - Websites Section. However I was check a fellow FIFA Ultimate Team Website Called FUTHEAD (http://www.futhead.com/), who have an Tax Calculator For Users, So They Know How Much To Sell Their Players On FUT Market As EA Take 5% Of Sales on The FIFA 13 Ultimate Team Market. So that users know I was wondering if you know how to create something like that for My site (http://futclub.net/)
     
    Master K, Mar 2, 2013 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    No idea what the site does, since you didn't give us a link to the calculator, but if you're looking for a net calculation, it's

    the amount you want / (1 - the percentage charged)

    or your net/.95 in this case (5% is 0.05). Deducting 5% from that will give you your original amount.

    How you do it in Javascript or PHP is up to you.
     
    Rukbat, Mar 5, 2013 IP
  3. Master K

    Master K Member

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #3
    If you look on www.futhead.com you see a navigation bar at the top
    there is a small search bar there
    look on the left you see an calculator icon
    and it pop up's using javascript
     
    Master K, Mar 14, 2013 IP
  4. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #4
    What exactly do you want to know - how it pops up or the entire code for the calculator? (They're both on the site, if you search through the source.)
     
    Rukbat, Mar 15, 2013 IP
  5. Master K

    Master K Member

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #5
    I would like to know how to code to make it pop up and the entire code
     
    Master K, Mar 16, 2013 IP
  6. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #6
    As I said, look at the source - the code is in there.
     
    Rukbat, Mar 17, 2013 IP