Home
Templates
Wordpress Templates
Blogger Template
Joomla Templates
PhpBB Templates
HTML And CSS Templates
PLugins
Wordpress Plugins
Joomla Modules
Blogger Gadgets
Coupon Codes
Hosting Coupons
Domain Coupons
Menus
HTML And CSS Menus
Flash Menus
Tutorials
Video Tutorials
Articles
Hosting
Free Hosting
Premium Hosting
Domains
Free Domains
Premium Domains
Earning Money
Google Adsense
Affiliate Marketing
Web Loverz
About Us
Contact Us
Java Scripts
Image Vectors
Widgets
Layouts
Tuesday, July 19, 2011
Calories Calculator Java Script
Bandwidth Calculator Java Script
This script allows you to show a Calories calculator and converter on any page of your website.To Use Just copy past the code given below..
Java Script In Action:
Your
Weight
Miles
run
Calories
burned
My Comment
HTML Code
<SCRIPT LANGUAGE="JavaScript"> <!-- var myWeight; var myDistance; function HowMany(form) { var difference; difference = (myDistance * myWeight) * .653; form.Fdiff.value = difference; if (difference < 100) { form.comment.value="You better start working!"; } if (difference > 101 && difference < 200) { form.comment.value="Nice run, but you can do better."; } if (difference > 201 && difference < 300) { form.comment.value="Very good! Push above 300 next time."; } if (difference > 301 && difference < 500) { form.comment.value="Great! Your a runner.....keep it up!"; } if (difference > 501 && difference < 700) { form.comment.value="Bill Rogers move over!"; } if (difference > 701) { form.comment.value="Your my hero! Have a jelly doughnut."; } } function SetMyWeight(weight) { myWeight = weight.value; } function SetmyDistance(dis) { myDistance = dis.value; } function ClearForm(form){ form.myWeight.value = ""; form.myDistance.value = ""; form.Fdiff.value = ""; form.comment.value = ""; } // --> </SCRIPT><br /> <center><br /> <FORM METHOD="POST"><TABLE border=3><TR> <TR> <TD><div align=center>Your<br>Weight</div></TD> <TD><div align=center>Miles<br>run</div></TD> <TD><div align=center>Calories<br>burned</div></TD> <TD><INPUT TYPE=BUTTON ONCLICK="HowMany(this.form)" VALUE="Calculate"></TD> </TR> <tr> <TD><div align=center><INPUT TYPE=text NAME=myWeight SIZE="4"ONCHANGE="SetMyWeight(this)"></div></TD> <TD><div align=center><INPUT TYPE=text NAME=myDistance SIZE="4"ONCHANGE="SetmyDistance(this)"></div></TD> <TD><div align=center><INPUT TYPE=text NAME="Fdiff" VALUE="" SIZE="6"></div></TD> <TD><div align=center><INPUT TYPE=BUTTON VALUE=" Reset " onClick="ClearForm(this.form)"></div></tr><br /> </table><table border=3><tr> <TD><DIV ALIGN=CENTER>My Comment</DIV></TD> <TD><INPUT TYPE=text NAME="comment" size="37"></td> </TR> </TABLE></FORM></center>
Calories Calculator Java Script
2011-07-19T20:16:00-07:00
Web Lover
Java Scripts|
Search
Change The Language
Be A Part Of Web Loverz
Join Web Loverz
Get Our Latest Updates
Enter your email address:
Sponsors