나의 건강체크 정보
javascript 나의 건강체크관련링크
본문
<html>
<title>건강체크표</title>
<SCRIPT LANGUAGE="JAVASCRIPT">
<!-- hide this script tag's contents from old browsers
function ClearForm(form){
form.weight.value = "";
form.height.value = "";
form.bmi.value = "";
form.my_comment.value = "";
}
function bmi(weight, height) {
bmindx=weight/eval(height*height);
return bmindx;
}
function checkform(form) {
if (form.weight.value==null||form.weight.value.length==0
|| form.height.value==null||form.height.value.length==0){
alert("\nPlease complete the form first");
return false;
}
else if (parseFloat(form.height.value) <= 0||
parseFloat(form.height.value) >=500||
parseFloat(form.weight.value) <= 0||
parseFloat(form.weight.value) >=500){
alert("\nReally know what you're doing? \nPlease enter values again. \nWeight in kilos and \nheight in cm");
ClearForm(form);
return false;
}
return true;
}
function computeform(form) {
if (checkform(form)) {
yourbmi=Math.round(bmi(form.weight.value, form.height.value/100));
form.bmi.value=yourbmi;
if (yourbmi >30) {
form.my_comment.value="우찌 이런 일이,뚱띵이 드럼통!? (비만)";
}
else if (yourbmi >28 && yourbmi <=30) {
form.my_comment.value="아니 이거 돼지아냐!!! (매우 과체중)";
}
else if (yourbmi >23 && yourbmi <=28) {
form.my_comment.value="아니, 돼지 아냐..꿀~꿀~ (과체중)";
}
else if (yourbmi >21 && yourbmi <=23) {
form.my_comment.value="조심하셔..꿀~꿀이 될려구요? (이상체중)";
}
else if (yourbmi >=19 && yourbmi <=21) {
form.my_comment.value="우~와! 정말 아름답습니다! (정상)";
}
else if (yourbmi >=18 && yourbmi <19) {
form.my_comment.value="너무 날씬하시군요,살좀 쪄요!! (비정상)";
}
else if (yourbmi >=17 && yourbmi <18) {
form.my_comment.value="이거. 뼈다귀 아냐!! (매우 비정상)";
}
else if (yourbmi <17) {
form.my_comment.value="우찌 이런 일이..뼈다귀 귀신아냐!! (엄청 비정상)";
}
}
return;
}
// -- done hiding from old browsers -->
</SCRIPT>
<BODY>
<center>
<span style="font-size:16pt;"><u><b>건강체크표
</b></u></span></center><p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center"> <font face="돋움"><span style="font-size:9pt;"><BR>안녕하세요.여러분의 건강을 수시로 확인하세요.<BR>
</span><font color=red><span style="font-size:9pt;">몸무게</span></font><span style="font-size:9pt;">와 </span><font color=red><span style="font-size:9pt;">키</span></font><span style="font-size:9pt;">만 숫자로 적으시고"</span><b><span style="font-size:9pt;">확인</span></b><span style="font-size:9pt;">"을 누르세요!<BR></span></font></p>
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center"> </p>
<center>
<FORM NAME="BMI" method=POST>
<TABLE border=1 style="border-top-color:rgb(0,0,0); border-right-color:rgb(0,0,0); border-bottom-color:rgb(0,0,0);" cellspacing="0" bgcolor="#EEEEEE" bordercolor="#CCCCCC" bordercolordark="white" bordercolorlight="#CCCCCC">
<TR>
<TD><DIV ALIGN=CENTER><font color="red" face="돋움"><span style="font-size:9pt;">몸무게</span></font><font face="돋움"><span style="font-size:9pt;"><br>(kg)</span></font></DIV></TD>
<TD><DIV ALIGN=CENTER><font color="red" face="돋움"><span style="font-size:9pt;">키</span></font><font face="돋움"><span style="font-size:9pt;"><br>(cm)</span></font></DIV></TD>
<TD><DIV ALIGN=CENTER><font color="blue" face="돋움"><span style="font-size:9pt;">BMI</span></font></DIV></TD>
<TD><DIV ALIGN=CENTER><font face="돋움"><span style="font-size:9pt;">컴퓨터의 평가</span></font></DIV></TD>
</TR>
<TR>
<TD><INPUT TYPE=TEXT NAME=weight SIZE=6 onFocus="this.form.weight.value=''"></TD>
<TD><INPUT TYPE=TEXT NAME=height SIZE=6 onFocus="this.form.height.value=''"></TD>
<TD><INPUT TYPE=TEXT NAME=bmi SIZE=5 ></TD>
<TD><INPUT TYPE=TEXT NAME=my_comment size=40></TD>
</tr>
</TABLE>
<P>
<font size=3><INPUT TYPE="reset" VALUE="reset" onClick="ClearForm(this.form)">
<INPUT TYPE="button" VALUE="확 인" onClick="computeform(this.form)"><br><br></font></center></FORM>
<form name="BMI" method="post">
<table style="line-height:100%; margin-top:0; margin-bottom:0;" align="center" cellpadding="0" cellspacing="0" width="300">
<tr>
<td width="300" height="149">
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center"><font face="돋움"><span style="font-size:9pt;">▣ 여기서 </span></font><font face="돋움" color="blue"><span style="font-size:9pt;">BMI</span></font><font face="돋움"><span style="font-size:9pt;">란 체질량지수(kg/㎡)로서</span></font></p>
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center">
<font face="돋움"><span style="font-size:9pt;">式은 </span></font><font face="돋움" color="blue"><span style="font-size:9pt;">BMI</span></font><font face="돋움"><span style="font-size:9pt;">=weight/eval(height*height)임.</span></font></p>
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center"><font face="돋움"><span style="font-size:9pt;"><br>■
체질량지수별 평가 </span></font></p>
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center">
<font face="돋움"><span style="font-size:9pt;">17 이하 ................엄청비정상</span></font></p>
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center"><font face="돋움"><span style="font-size:9pt;">17 ~ 18 ................매우비정상</span></font></p>
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center">
<font face="돋움"><span style="font-size:9pt;">18 ~ 19 ......................비정상</span></font></p>
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center"><font face="돋움"><span style="font-size:9pt;"><b>19 ~ 21 ..................</b></span></font><font face="돋움" color="#00CC00"><span style="font-size:9pt;"><b>정상</b></span></font></p>
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center">
<font face="돋움"><span style="font-size:9pt;">21 ~ 23 ..................이상체중</span></font></p>
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center"><font face="돋움"><span style="font-size:9pt;">23 ~ 28 .....................과체중</span></font></p>
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center">
<font face="돋움"><span style="font-size:9pt;">28 ~ 30 ...............매우과체중</span></font></p>
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center">
<font face="돋움"><span style="font-size:9pt;"><b>30 이상 ..................</b></span></font><font face="돋움" color="red"><span style="font-size:9pt;"><b>비만</b></span></font></p>
</td>
</tr>
</table>
</form>
</BODY>
</html>
<title>건강체크표</title>
<SCRIPT LANGUAGE="JAVASCRIPT">
<!-- hide this script tag's contents from old browsers
function ClearForm(form){
form.weight.value = "";
form.height.value = "";
form.bmi.value = "";
form.my_comment.value = "";
}
function bmi(weight, height) {
bmindx=weight/eval(height*height);
return bmindx;
}
function checkform(form) {
if (form.weight.value==null||form.weight.value.length==0
|| form.height.value==null||form.height.value.length==0){
alert("\nPlease complete the form first");
return false;
}
else if (parseFloat(form.height.value) <= 0||
parseFloat(form.height.value) >=500||
parseFloat(form.weight.value) <= 0||
parseFloat(form.weight.value) >=500){
alert("\nReally know what you're doing? \nPlease enter values again. \nWeight in kilos and \nheight in cm");
ClearForm(form);
return false;
}
return true;
}
function computeform(form) {
if (checkform(form)) {
yourbmi=Math.round(bmi(form.weight.value, form.height.value/100));
form.bmi.value=yourbmi;
if (yourbmi >30) {
form.my_comment.value="우찌 이런 일이,뚱띵이 드럼통!? (비만)";
}
else if (yourbmi >28 && yourbmi <=30) {
form.my_comment.value="아니 이거 돼지아냐!!! (매우 과체중)";
}
else if (yourbmi >23 && yourbmi <=28) {
form.my_comment.value="아니, 돼지 아냐..꿀~꿀~ (과체중)";
}
else if (yourbmi >21 && yourbmi <=23) {
form.my_comment.value="조심하셔..꿀~꿀이 될려구요? (이상체중)";
}
else if (yourbmi >=19 && yourbmi <=21) {
form.my_comment.value="우~와! 정말 아름답습니다! (정상)";
}
else if (yourbmi >=18 && yourbmi <19) {
form.my_comment.value="너무 날씬하시군요,살좀 쪄요!! (비정상)";
}
else if (yourbmi >=17 && yourbmi <18) {
form.my_comment.value="이거. 뼈다귀 아냐!! (매우 비정상)";
}
else if (yourbmi <17) {
form.my_comment.value="우찌 이런 일이..뼈다귀 귀신아냐!! (엄청 비정상)";
}
}
return;
}
// -- done hiding from old browsers -->
</SCRIPT>
<BODY>
<center>
<span style="font-size:16pt;"><u><b>건강체크표
</b></u></span></center><p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center"> <font face="돋움"><span style="font-size:9pt;"><BR>안녕하세요.여러분의 건강을 수시로 확인하세요.<BR>
</span><font color=red><span style="font-size:9pt;">몸무게</span></font><span style="font-size:9pt;">와 </span><font color=red><span style="font-size:9pt;">키</span></font><span style="font-size:9pt;">만 숫자로 적으시고"</span><b><span style="font-size:9pt;">확인</span></b><span style="font-size:9pt;">"을 누르세요!<BR></span></font></p>
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center"> </p>
<center>
<FORM NAME="BMI" method=POST>
<TABLE border=1 style="border-top-color:rgb(0,0,0); border-right-color:rgb(0,0,0); border-bottom-color:rgb(0,0,0);" cellspacing="0" bgcolor="#EEEEEE" bordercolor="#CCCCCC" bordercolordark="white" bordercolorlight="#CCCCCC">
<TR>
<TD><DIV ALIGN=CENTER><font color="red" face="돋움"><span style="font-size:9pt;">몸무게</span></font><font face="돋움"><span style="font-size:9pt;"><br>(kg)</span></font></DIV></TD>
<TD><DIV ALIGN=CENTER><font color="red" face="돋움"><span style="font-size:9pt;">키</span></font><font face="돋움"><span style="font-size:9pt;"><br>(cm)</span></font></DIV></TD>
<TD><DIV ALIGN=CENTER><font color="blue" face="돋움"><span style="font-size:9pt;">BMI</span></font></DIV></TD>
<TD><DIV ALIGN=CENTER><font face="돋움"><span style="font-size:9pt;">컴퓨터의 평가</span></font></DIV></TD>
</TR>
<TR>
<TD><INPUT TYPE=TEXT NAME=weight SIZE=6 onFocus="this.form.weight.value=''"></TD>
<TD><INPUT TYPE=TEXT NAME=height SIZE=6 onFocus="this.form.height.value=''"></TD>
<TD><INPUT TYPE=TEXT NAME=bmi SIZE=5 ></TD>
<TD><INPUT TYPE=TEXT NAME=my_comment size=40></TD>
</tr>
</TABLE>
<P>
<font size=3><INPUT TYPE="reset" VALUE="reset" onClick="ClearForm(this.form)">
<INPUT TYPE="button" VALUE="확 인" onClick="computeform(this.form)"><br><br></font></center></FORM>
<form name="BMI" method="post">
<table style="line-height:100%; margin-top:0; margin-bottom:0;" align="center" cellpadding="0" cellspacing="0" width="300">
<tr>
<td width="300" height="149">
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center"><font face="돋움"><span style="font-size:9pt;">▣ 여기서 </span></font><font face="돋움" color="blue"><span style="font-size:9pt;">BMI</span></font><font face="돋움"><span style="font-size:9pt;">란 체질량지수(kg/㎡)로서</span></font></p>
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center">
<font face="돋움"><span style="font-size:9pt;">式은 </span></font><font face="돋움" color="blue"><span style="font-size:9pt;">BMI</span></font><font face="돋움"><span style="font-size:9pt;">=weight/eval(height*height)임.</span></font></p>
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center"><font face="돋움"><span style="font-size:9pt;"><br>■
체질량지수별 평가 </span></font></p>
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center">
<font face="돋움"><span style="font-size:9pt;">17 이하 ................엄청비정상</span></font></p>
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center"><font face="돋움"><span style="font-size:9pt;">17 ~ 18 ................매우비정상</span></font></p>
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center">
<font face="돋움"><span style="font-size:9pt;">18 ~ 19 ......................비정상</span></font></p>
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center"><font face="돋움"><span style="font-size:9pt;"><b>19 ~ 21 ..................</b></span></font><font face="돋움" color="#00CC00"><span style="font-size:9pt;"><b>정상</b></span></font></p>
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center">
<font face="돋움"><span style="font-size:9pt;">21 ~ 23 ..................이상체중</span></font></p>
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center"><font face="돋움"><span style="font-size:9pt;">23 ~ 28 .....................과체중</span></font></p>
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center">
<font face="돋움"><span style="font-size:9pt;">28 ~ 30 ...............매우과체중</span></font></p>
<p style="line-height:100%; margin-top:0; margin-bottom:0;" align="center">
<font face="돋움"><span style="font-size:9pt;"><b>30 이상 ..................</b></span></font><font face="돋움" color="red"><span style="font-size:9pt;"><b>비만</b></span></font></p>
</td>
</tr>
</table>
</form>
</BODY>
</html>
추천
0
0
댓글 전체
역시 난..ㅠ.ㅡ 비정상.....
오메.. 과체중에.. 돼지 아니냐구라....
~~!%!&^%@$%~!#@^$*
후후...
~~!%!&^%@$%~!#@^$*
후후...
참!
근거 있냐구요?
BMI 지수는 병원에서 사용하는 신체계측의 검사항목(검사기준)이라고 합니다.
근거 있냐구요?
BMI 지수는 병원에서 사용하는 신체계측의 검사항목(검사기준)이라고 합니다.
한번씩들 해보시구 알아서 바꿔 쓰세요^^