User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 374,572 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,779 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Jan 28th, 2008
Views: 2,212
A simple HTML code that converts Fahrenheit to Celsius and Vice Versa.
html Syntax | 4 stars
  1. <font size=+1>Enter a number in either field, then click outside
  2. the text box.&nbsp;<form>F:&nbsp;</font><input type="text" name="F" value="32"
  3. onChange="C.value = 100/(212-32) * (this.value - 32 )">
  4. <br><font size=+1>C:&nbsp;</font><input type="text" name="C" value="0"
  5. onChange="F.value = (212-32)/100 * this.value + 32 ">
  6. <center></form>
Post Comment

Only community members can submit or comment on code snippets. You must register or log in to contribute.

DaniWeb Marketplace (Sponsored Links)
All times are GMT -4. The time now is 5:53 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC