special forms
Hi,
I have on my website a BMI calculator which a person puts in their height, weight, age etc... and it gives the results of the person health etc...
i have the files uploaded in the root directory.
however for the form, it uses both HTML and javascript. I need a way to get this in my weight loss product next to the description of the product. here is the code, so you can see what i want to do.
HTML CODE:
To determine your B.M.I.:
- Enter your weight and height using standard measures (standard means current weight is in pounds, the height is in feet and you must put a value for inches even if it is 0.)
- Click on "Calculate" and your B.M.I. will appear in the calculator
@import url(/bmicalculator/bmicalculator.css);
JAVASCRIPT CODE:
var bmi;
window.onload=function() {
bmi = new BMICalculator();
bmi.setTargetDIV('newHolder');
bmi.buildCalculator();
bmi.initializeBMICalculator();
}
please let me know what to do
Comments
A suggestion
If you just want a BMI calculator check this: https://drupal.org/project/bmi
If that's not enough and you need your custom JavaScript let us know to explain you the details
Thanks
wow yes this is exactly what
wow yes this is exactly what i need, but how do i put this in my product under my description?