June 17, 201016 yr Hi guys, I'm looking for a slider (scrollbar type) that calculates profit. I'm probably making this sound more complex than is it, basically imagine one slider (horizontal). Below it is some text, on the left hand side perhaps something called "Cost Price", on the right hand side "Profit". Then as you move the slider upwards it calculates the profit from the cost price depending on where the slider is. For example. The cost price is £100, and the resell price is set, on the slider, to £110, the profit then auto updates to £10 profit. As you move the slider obviously it's dynamic. I've been googling this for a couple of days now, the problem I've got is that google returns loads of Javascript image sliders and that's not what I want, I've tried "javascript calculation slider" but I just end up with Javascript calculators! Any pointers or help here would be great!! Cheers.
June 17, 201016 yr i think you can use something like this http://jqueryui.com/demos/slider/#steps but you have to do all the sums yourself i think. Use the examples on the right hand side for the calculations Never used it but seen this slider used in the same way you want on other websites
June 17, 201016 yr Author i think you can use something like this http://jqueryui.com/demos/slider/#steps but you have to do all the sums yourself i think. Use the examples on the right hand side for the calculations Never used it but seen this slider used in the same way you want on other websites Thanks, that's kinda the thing I'm after but I have very little knowledge of Javascript, I'm more of a CSS/HTML kinda guy. Can anyone explain how I'd work out the calculation? An example is: Cost Price: £100 <--- SLIDER HERE ---> Profit: £?? (slider value + cost price) Cheers.
Create an account or sign in to comment