Tuesday 21 April 2009 photo 2/2
|
<html>
<head>
<title>Vikt</title>
<script>
function bmi(a,b,c)
{
var a ,b, c;
a=F1.T1.value;
b=F1.T2.value;
c= a / (b * b);
F1.T3.value=c;
if (c <18.5)
F1.T4.value="Underviktig";
if ((c >=18.5) || (c <=25))
F1.T4.value="Normalviktig";
if (c >25)
F1.T4.value="Riktig man";
F1.T1.setfocus
}
</script>
</head>
<body>
<form name="F1">
Vikt: <input type="text" name="T1" size="20">
Längd: <input type="text" name="T2" size="20">
<input type="button" value="Beräkna" name="B1" onclick="bmi();" onfocus="F1.T1.select();">
BMI: <input type="text" name="T3" size="20"><input type="text" name="T4" size="20" onfocus="F1.T1.select();">
</form>
</body>
</html>
<head>
<title>Vikt</title>
<script>
function bmi(a,b,c)
{
var a ,b, c;
a=F1.T1.value;
b=F1.T2.value;
c= a / (b * b);
F1.T3.value=c;
if (c <18.5)
F1.T4.value="Underviktig";
if ((c >=18.5) || (c <=25))
F1.T4.value="Normalviktig";
if (c >25)
F1.T4.value="Riktig man";
F1.T1.setfocus
}
</script>
</head>
<body>
<form name="F1">
Vikt: <input type="text" name="T1" size="20">
Directlink:
http://dayviews.com/minprofil/358409193/