The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Fund rotator

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #38756

    I’m not the worlds greatest js coder but I can understand it when I look at something already created. With that said, here is what I need some help with.

    I’ve found tons of rotators out there but nothing like what I need. I needing one to track how far we are from a goal. For example: We have a goal of $30,000 to be raised but we have only raised 5,000. It would be nice to be able to show that we have raised $5,000 but under the image, have a dive that says we only need $XX,XXX to reach our goal by a certain date. It would also be nice for it to show a percentage of the goal so far.

    I really appreciate any help on this.


    @ChrisxClash is that math correct? $25000 to go is not 16.67% of $30000. You divided the current by the total which gives you the current percent, but not the percentage to go.

    It should be:

    var percent = (toGo/total)*100;

    But either way Madd wants to use it, nice work.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.