VB icon

another version of tempreature converter

Email
Submitted on: 1/6/2015 9:02:00 AM
By: sherif rofael (from psc cd)  
Level: Beginner
User Rating: By 3 Users
Compatibility: VbScript (browser/client side)
Views: 1429
 
     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!
				
'**************************************
' 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 (from psc cd)
'**************************************

<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 1 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.