Important alert: (current site time 7/15/2013 11:04:16 PM EDT)
 

VB icon

another version of tempreature converter

Email
Submitted on: 8/7/2002 5:12:32 PM
By: sherif rofael  
Level: Beginner
User Rating: By 3 Users
Compatibility: VbScript (browser/client side)
Views: 9751
author picture
(About the author)
 
     converts from celcius to fahrenhite and vice versa, it's a new version of a similar program i submitted before.
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
				
'**************************************
' Name: another version of tempreature converter
' Description:converts from celcius to fahrenhite and vice versa,
it's a new version of a similar program i submitted before.
' By: sherif rofael
'
'This code is copyrighted and has' limited warranties.Please see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=7742&lngWId=4'for details.'**************************************

<html dir="rtl">
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<script id=clientEventHandlersVBS language=vbscript>
<!--
Sub B3_onclick
if m.value=1 then
if c.value="" then c.value=0
f.value = (c.value)*9/5 +32
end if
if m.value=2 then 
if f.value="" then f.value=0
c.value=((f.value)-32)*5/9
end if
End Sub
Sub Radio1_onclick
'if c.value="" then c.value=0
'f.value = (c.value)*9/5 +32
m.value=1
c.value=""
f.value=""
End Sub
Sub Radio2_onclick
'if f.value="" then f.value=0
'c.value=((f.value)-32)*5/9
m.value=2
c.value=""
f.value=""
End Sub
Sub B2_onclick
c.value=""
f.value=""
End Sub
Sub window_onload
m.value=1
End Sub
-->
</script>
</head>
<body>
<p dir="ltr">  </p>
<p dir="ltr"><input type="text" name="m" size="20"></p>
 <p dir="ltr"> 
<INPUT type="radio" name="radio" ID=Radio1> <font color="#0000FF"><b>convert from 
Celsius to Fahrenheit</b></font></p>
<p dir="ltr">
 
<INPUT type="radio" name="radio" ID=Radio2><font color="#0000FF"><b>convert from 
Fahrenheit to Celsius </b></font> </p>
<p dir="ltr">              <input type="text" name="c" size="23" style="font-family: Comic Sans MS; color: #FF0000; font-weight: bold; font-size: 1em">  <font size="5"> </font><font size="5" color="#0000FF">Celsius =</font>    
<input type="text" name="f" size="18" style="font-family: Comic Sans MS; color: #008000; font-weight: bold; font-size: 1em">  <font color="#0000FF" size="5">
Fahrenheit    </font>               </p>
<p dir="ltr"> </p>
<p dir="ltr">
<input type="button" value="convert" name="B3" style="font-size: 14pt; font-family: Tempus Sans ITC; font-weight: bold; border-style: double; border-width: 3; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1">     
<input type="reset" value="Reset" name="B2" style="color: #800080; font-family: Tempus Sans ITC; font-weight: bold; font-size: 14pt; border-style: dashed; border-width: 3"></p>
<p> </p>
</body>
</html>


Other 3 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.