<html>
<head>
<title> 2월 6일 과제 </title>
<style type="text/css">
input,textarea,select{border-style:solod; border-width:1px; border-color:gray;}
</style>
<script>
function setFocus(){
document.form1.id.focus();
}
function Check(){
if(document.form1.id.value==""){
alert("id를 입력하세요!");
document.form1.id.focus();
return;
}
if(document.form1.pwd.value==0)
{ alert("password를 입력하세요!");
document.form1.pwd.focus();
return;
}
if (document.form1.name.value==0)
{ alert("이름을 입력해주세요!");
document.form1.name.focus();
return;
}
if (document.form1.add.value==0)
{ alert("우편번호를 입력해주세요!");
document.form1.add.focus();
return;
}
if (document.form1.add2.value==0)
{ alert("주소를 입력해 주세요!");
document.form1.add2.focus();
return;
}
if (document.form1.add3.value==0)
{ alert("나머지 주소를 입력해주세요ㅋㅡㅡ");
document.form1.add3.focus();
return;
}
document.form1.submit();
}
</script>
</head>
<body onLoad="setFocus();">
<center>
<br><br>
<h2>********************** 회 원 가 입 **********************</h2>
<br>
<form name=form1 method=post action=register.aspx>
<table border=1 width=515 height=550>
<tr><td><b>  ID</b></td><td>  <input type="text" name="id" size="15"on></td></tr>
<tr><td><b>  암호지정</b></td><td>  <input type="password" name="pwd" size="15" maxlength="10"></td></tr>
<tr><td><b>  Name</b></td><td>  <input type="text" name="name" size="10" maxlength="10"></td></tr>
<tr><td><b>  우편번호</b></td><td>  <input type="text" name="add" size="4" maxlength="3">- <input type="text" name="add0" size="4" maxlength="3">
<input type="button" value="우편번호 검색" size="1" Onclick="window.open('open1.html','open', 'width=400, height=400')"></td></tr>
<tr><td><b>  주소</b></td><td>  <input type="text" name="add2" size="30"></td></tr>
<tr><td><b>  나머지 주소</b></td><td>  <input type="text" name="add3" size=30></td></tr>
<tr><td><b>  E-MAIL</b></td><td>  <input type="text" name="email" size="10"> <b>@ </b><select name="email" style="background-color:#FF9900;">
<option value="한메일">hanmail.net</option>
<option value="네이버">naver.com</option>
<option value="네이트">nate.com</option>
<option value="파란">paran.com</option>
<option value="지메일">gmail.com</option>
<option value="야후">yahoo.co.kr</option>
<option value="핫메일">hotmail.com</option>
<option value="기타 다른 메일"> </option></select></td></tr>
<tr><td><b>  연락처</b></td><td>  <input type="text" name="call" size=4 maxlength=4> - <input type="text" name="call" size=4 maxlength=4> - <input type="text" name="call" size=4 maxlength=4></td></tr>
<tr><td><b>  자기 소개</b></td><td>
  <textarea name="message" rows=8 cols=50></textarea>
</td></tr>
</table>
<p>
<input type="button" value="확인" onClick="Check()">
<input type="reset" value="취소">
</form>
</center>
</body>
</html>
<head>
<title> 2월 6일 과제 </title>
<style type="text/css">
input,textarea,select{border-style:solod; border-width:1px; border-color:gray;}
</style>
<script>
function setFocus(){
document.form1.id.focus();
}
function Check(){
if(document.form1.id.value==""){
alert("id를 입력하세요!");
document.form1.id.focus();
return;
}
if(document.form1.pwd.value==0)
{ alert("password를 입력하세요!");
document.form1.pwd.focus();
return;
}
if (document.form1.name.value==0)
{ alert("이름을 입력해주세요!");
document.form1.name.focus();
return;
}
if (document.form1.add.value==0)
{ alert("우편번호를 입력해주세요!");
document.form1.add.focus();
return;
}
if (document.form1.add2.value==0)
{ alert("주소를 입력해 주세요!");
document.form1.add2.focus();
return;
}
if (document.form1.add3.value==0)
{ alert("나머지 주소를 입력해주세요ㅋㅡㅡ");
document.form1.add3.focus();
return;
}
document.form1.submit();
}
</script>
</head>
<body onLoad="setFocus();">
<center>
<br><br>
<h2>********************** 회 원 가 입 **********************</h2>
<br>
<form name=form1 method=post action=register.aspx>
<table border=1 width=515 height=550>
<tr><td><b>  ID</b></td><td>  <input type="text" name="id" size="15"on></td></tr>
<tr><td><b>  암호지정</b></td><td>  <input type="password" name="pwd" size="15" maxlength="10"></td></tr>
<tr><td><b>  Name</b></td><td>  <input type="text" name="name" size="10" maxlength="10"></td></tr>
<tr><td><b>  우편번호</b></td><td>  <input type="text" name="add" size="4" maxlength="3">- <input type="text" name="add0" size="4" maxlength="3">
<input type="button" value="우편번호 검색" size="1" Onclick="window.open('open1.html','open', 'width=400, height=400')"></td></tr>
<tr><td><b>  주소</b></td><td>  <input type="text" name="add2" size="30"></td></tr>
<tr><td><b>  나머지 주소</b></td><td>  <input type="text" name="add3" size=30></td></tr>
<tr><td><b>  E-MAIL</b></td><td>  <input type="text" name="email" size="10"> <b>@ </b><select name="email" style="background-color:#FF9900;">
<option value="한메일">hanmail.net</option>
<option value="네이버">naver.com</option>
<option value="네이트">nate.com</option>
<option value="파란">paran.com</option>
<option value="지메일">gmail.com</option>
<option value="야후">yahoo.co.kr</option>
<option value="핫메일">hotmail.com</option>
<option value="기타 다른 메일"> </option></select></td></tr>
<tr><td><b>  연락처</b></td><td>  <input type="text" name="call" size=4 maxlength=4> - <input type="text" name="call" size=4 maxlength=4> - <input type="text" name="call" size=4 maxlength=4></td></tr>
<tr><td><b>  자기 소개</b></td><td>
  <textarea name="message" rows=8 cols=50></textarea>
</td></tr>
</table>
<p>
<input type="button" value="확인" onClick="Check()">
<input type="reset" value="취소">
</form>
</center>
</body>
</html>
'.net expert > html & java' 카테고리의 다른 글
return의 이해 (0) | 2007.02.15 |
---|---|
자바스크립트의 특징 (2) | 2007.02.13 |