Jump to content

Recommended Posts

Posted

Acest JavaScript converteste temperatura din grade Celsius in grade Fahrenheit si invers.

67672947if5.png


<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>PC Troubleshooting Conversie Grade</title>

<script LANGUAGE="JavaScript">
function celtofar (form)
{
form.fahrenheit.value = form.celsius.value*1.8+32
}
function fartocel (form)
{
form.celsius.value = round((form.fahrenheit.value-32)/1.8)
}
</SCRIPT>
</head>

<body>
<FORM>
Celsius
<INPUT TYPE ="text" NAME="celsius" SIZE=15
onkeypress ="celtofar(this.form)">
Fahrenheit
<INPUT TYPE="text" NAME="fahrenheit" SIZE=15
onkeypress ="fartocel(this.form)">
</form>

</body>

</html>[/code]

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.