I would like bids on building a calculator with the variables on this site http://www.gardenplace.com/content/calculator/mulch_calc.html Here or PM Thank You
This is javascript ... just check the source code : <SCRIPT LANGUAGE="JavaScript"> <!-- // Begin Hiding script function fctPrint(){ window.print(); } function fctClose(){ window.close(); } function calc_cfeet (thickness, sqrft) { var t = parseFloat (thickness); var f = parseFloat (sqrft); return Math.ceil (t * f); } function calc_cyard (thickness, sqrft) { var t = parseFloat (thickness); var f = parseFloat (sqrft); return Math.ceil (10 * t * f / 27)/10; } function calc_values () { var tindex = document.calc_form.thickness.selectedIndex; var thickness = document.calc_form.thickness.options[tindex].value; var sqrft = document.calc_form.sqft.value; var c_feet = calc_cfeet (thickness, sqrft); var c_yard = calc_cyard (thickness, sqrft); var c_feet_2b = Math.ceil (calc_cfeet (thickness, sqrft) / 2); var c_feet_3b = Math.ceil (calc_cfeet (thickness, sqrft) / 3); var pu_lds = Math.ceil (calc_cyard (thickness, sqrft) / 1.5); document.calc_form.ft_total.value=c_feet; document.calc_form.ya_total.value=c_yard; document.calc_form.ft2_total.value=c_feet_2b; document.calc_form.ft3_total.value=c_feet_3b; document.calc_form.pu_total.value=pu_lds; return false; } //Finish Hiding script --> </SCRIPT> Code (markup):
Thanks everyone, Commandos I didn't want to do it myself the first time Thank You for your input, Have the job done, Thank You