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

VB icon

any system to another tempreature converter

Email
Submitted on: 8/9/2002 4:38:06 PM
By: sherif rofael  
Level: Beginner
User Rating: By 3 Users
Compatibility: VbScript (browser/client side)
Views: 10713
author picture
(About the author)
 
     converts from any system to any other system, it's also tempreature converter , but it is a new look , i think it's good , excuse me , i'm still a beginner to vb script ,i 'm trying to practise it as much as possible

 
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
'**************************************
' for :any system to another tempreature converter
'**************************************
just copy and paste the code ,
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: any system to another tempreature converter
' Description:converts from any system to any other system, 
it's also tempreature converter , but it is a new look , i think it's good ,
excuse me , i'm still a beginner to vb script ,i 'm trying to practise it as much as possible
' By: sherif rofael
'
' Assumes:see it running : 
http://sherif1.netfirms.com/tem.htm
or 
http://user.domaindlx.com/sherif/tem.htm
'
'This code is copyrighted and has' limited warranties.Please see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=7749&lngWId=4'for details.'**************************************

<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<script id=clientEventHandlersVBS language=vbscript>
<!--
Sub D1_onclick
call detect()
if convert.value="" then convert.value=0
End Sub
Sub D2_onclick
call detect()
if convert.value="" then convert.value=0
End Sub
function detect()
if d1.value=1 and d2.value=1 then 
t.value= convert.value & " celcius equals " & convert.value & " celcius"
end if
if d1.value=2 and d2.value=2 then 
t.value= convert.value & " fahrenhite equals " & convert.value & " fahrenhite"
end if
if d1.value=3 and d2.value=3 then 
t.value= convert.value & " kelvin equals " & convert.value & " kelvin"
end if
if d1.value=1 and d2.value=2 then 
t.value= convert.value & " celcius equals " & ((convert.value)*9/5+32) & " fahrenhite"
end if
if d1.value=2 and d2.value=1 then 
t.value= convert.value & " fahrenhite equals " & (((convert.value)-32)*5/9) & " celcius"
end if
if d1.value=3 and d2.value=1 then 
t.value= convert.value & " kelvin equals " & (convert.value)-273 & " celcius"
end if
if d1.value=1 and d2.value=3 then 
t.value= convert.value & " celcius equals " & (convert.value)+273 & " kelvin"
end if
if d1.value=2 and d2.value=3 then 
t.value= convert.value & " fahrenhite equals " & (((convert.value)-32)*5/9)+273 & " kelvin"
end if
if d1.value=3 and d2.value=2 then 
t.value= convert.value & " kelvin equals " & ((convert.value)-273)*9/5+32 & " fahrenhite"
end if
end function
Sub window_onload
call detect()
if convert.value="" then convert.value=0
End Sub
-->
</script>
<title>tempreature converter by sherif rofael </title>
</head>
<body>
<p> </p>
<p>I WANT TO CONVERT </p>
<p>CONVERT : <input type="text" name="convert" size="20"></p>
<p>    FROM:                
TO:</p>
<p> <select size="4" name="D1">
<option value="1" selected>celcius</option>
<option value="2">fahrenhite</option>
<option value="3">kelvin</option>
</select>    <select size="4" name="D2">
<option value="1" selected>celcius</option>
<option value="2">fahrenhite</option>
<option value="3">kelvin</option>
</select></p>
<p>       <input type="text" name="T" size="45"></p>
<p> </p>
<p>    
<a href="mailto:ya3amo@hotmail.com?subject=tempreature converter ( second version)">
E-MAIL</a></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
8/9/2002 9:33:42 PMLewis Moten

I saw your site first. Didn't realize you posted it on PSC also. Kudos!
(If this comment was disrespectful, please report it.)

 
8/21/2002 12:32:04 AMrien

how to program count using vbscript "Peruntukan - Kos = Baki"
(If this comment was disrespectful, please report it.)

 
4/1/2004 6:08:19 PM

wont work at nc7
(If this comment was disrespectful, please report it.)

 

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.