ํฐ์คํ ๋ฆฌ ๋ทฐ
<%@ page language="java" contentType="text/html; charset=EUC-KR"
pageEncoding="EUC-KR"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>ํ์ ๊ฐ์
</title>
<style type=text/css>
body{
background-color: #FFE4C4;
color: #713f00;
}
#inputBorder{
border: 1 solid #B0A5F3;
}
#buttonBorder{
border: 1 solid #B0A5F3;
background-color: #ddE4C4;
}
</style>
<script language=javascript>
function idCheck(){
//์์ฐฝ์ ์ด์ด์ id_search.html์ ์ด์.
//window.open("์ฃผ์","์ฐฝ์ด๋ฆ","์ฐฝ์ ์คํ");
window.open("",
"id_search",
"width=500, height=300, toolbar=no, " +
"location=no, status=yes, menubar=no, " +
"scrollbars=yes, directories=no, " +
"resizable=yes");
//form์ ํ๊ฒ์ ์ ์ฐฝ์ผ๋ก ์ง์ ํ์.
form1.target = "id_search";
form1.action = "id_search.jsp";
form1.submit();
}
function idCheck2(){
window.open("",
"id_search",
"width=500, height=300, toolbar=no, " +
"location=no, status=yes, menubar=no, " +
"scrollbars=yes, directories=no, " +
"resizable=yes");
//form์ ํ๊ฒ์ ์ ์ฐฝ์ผ๋ก ์ง์ ํ์.
form1.target = "id_search";
form1.action = "../servlet/SearchProcess";
form1.submit();
}
function idCheck3(){
window.open("",
"id_search",
"width=500, height=300, toolbar=no, " +
"location=no, status=yes, menubar=no, " +
"scrollbars=yes, directories=no, " +
"resizable=yes");
//form์ ํ๊ฒ์ ์ ์ฐฝ์ผ๋ก ์ง์ ํ์.
form1.target = "id_search";
form1.action = "id_search3.jsp";
form1.submit();
}
function searchPost(){
window.open("searchPost.jsp",
"post",
"width=500, height=300, toolbar=no, " +
"location=no, status=yes, menubar=no, " +
"scrollbars=yes, directories=no, " +
"resizable=yes");
}
function juminCheck(){
//์
๋ ฅ๋ ์ฃผ๋ฏผ๋ฒํธ ์ฒ์ 6์๋ฆฌ๋ฅผ ์ฝ์
var juminValue = form1.jumin1.value;
//๊ธธ์ด๊ฐ 6์ด ๋๋ฉด ๋ค์ ์ฃผ๋ฏผ๋ฒํธ ์นธ์ผ๋ก ์ด๋์ํค์
if( juminValue.length == 6 ){
form1.jumin2.focus();
}
}
function checkForm(){
//ํผ ๋ด์ฉ์ด ์ ์ก๋๊ธฐ ์ ์ ํธ์ถ๋๋ ํจ์
//๋ชจ๋ ํผ ๋ด์ฉ์ ๊ฒ์ฆ์ด ํ์ํ๋ค
//์์ด๋ ๊ฒ์ฆ
//์ํธ ๊ฒ์ฆ
//์ฃผ์ ๊ฒ์ฆ ๋ฑ๋ฑ๋ฑ..
id = form1.id.value;
pwd = form1.pwd.value;
pwd2 = form1.pwd2.value;
name = form1.name.value;
zip1 = form1.zip1.value;
zip2 = form1.zip2.value;
addr = form1.addr.value;
jumin1 = form1.jumin1.value;
jumin2 = form1.jumin2.value;
//์ํธ์ ์ํธํ์ธ ๋ฐ์ดํฐ๊ฐ ์๋ก ์ผ์นํ๋๊ฐ
if( pwd != pwd2 ){
alert(
"์ํธ๊ฐ ์๋ก ์ผ์นํ์ง ์์ต๋๋ค.\n\n" +
"๋ค์ ํ์ธํด ์ฃผ์ธ์");
form1.pwd.value = "";
form1.pwd2.value = "";
form1.pwd.focus();
return false;//submit ์์
์ด ์ทจ์๋๋ค.
}
//๊ฐ ๋ฐ์ดํฐ๋ฅผ ๊ฒ์ฆํ์
if( !isValidate(id) ){
alert("์์ด๋๋ฅผ ๋ค์ ์
๋ ฅํด ์ฃผ์ธ์");
form1.id.focus();
return false;
}
//์ฑ๋ณ์ ํ์ธํ์
/* var isChecked = false;
for(i = 0; i < form1.gender.length; i++){
if( form1.gender[i].checked == true ){
isChecked = true;
kind = "";
if( form1.gender[i].value == "m" ){
kind = "๋จ์";
}else{
kind = "์ฌ์";
}
alert("๋น์ ์ " + kind);
break;
}
}
if( !isChecked ) {
alert("์ฑ๋ณ์ ์ ํํด ์ฃผ์
~");
return false;
}
*/
form1.target = "";
form1.action = "joinProc.jsp";
}//checkForm() end
function isValidate(data){
if( data == null || data.length == 0 ){
return false;
}else{
return true;
}
}
function showMsgLayer(layer1,msg){
layer = eval("document.all." + layer1);
layer.innerHTML = msg;
layer.style.visibility = 'visible';
}
function hideMsgLayer(layer1){
layer = eval("document.all." + layer1);
layer.style.visibility = 'hidden';
}
function goTheOtherAction(){
//์ด์ ์ก์
์ ์๊ณ ์๋ก์ด ์ก์
์ง์
form1.action = "script_exam6.html";
//์ด์ ํ์ผ์ ์๊ณ ํ์ฌ ์ฐฝ์ผ๋ก ํ๊ฒ ์ค์
form1.target = "";
//์ ์กํ๋๋ก ํ๋ ๋ฉ์๋
form1.submit();
}
</script>
</head>
<body onLoad="form1.id.focus()">
<h3 align=center>ํ์ ๊ฐ์
</h3>
<hr>
<form name=form1 action="joinProc.jsp" method=post
onSubmit="return checkForm()" >
<table border=1 cellpadding=3 cellspacing=0 align=center
width=500 bordercolorlight=#CF4D22 bordercolordark=white>
<tr>
<td align=center
onMouseOver="showMsgLayer('idLayer','์์ด๋๋ฅผ ์
๋ ฅ๋ฐ๋')"
onMouseOut="hideMsgLayer('idLayer')"
>ID</td>
<td>
<input type=text name=id size=20 id=inputBorder>
<input type=button value="์ค๋ณต ํ์ธ" onClick="idCheck()"
id=buttonBorder>
<input type=button value="์ค๋ณต ํ์ธ2" onClick="idCheck2()"
id=buttonBorder>
<input type=button value="์ค๋ณต ํ์ธ3" onClick="idCheck3()"
id=buttonBorder>
<span id=idLayer style="visibility:hidden"></span>
</td>
</tr>
<tr>
<td align=center
onMouseOver="showMsgLayer('pwdLayer','์ํธ๋ฅผ ๋ฃ์ด์ฃผ์ธ์')"
onMouseOut="hideMsgLayer('pwdLayer')">์ํธ</td>
<td>
<input type=password name=pwd size=20 id=inputBorder>
<span id=pwdLayer name=pwdLayer style="position:relative;visibility:hidden;">
</span>
</td>
</tr>
<tr>
<td align=center
onMouseOver="showMsgLayer('pwd2Layer','์ํธ๋ฅผ ํ์ธ๋ฐ๋')"
onMouseOut="hideMsgLayer('pwd2Layer')"
>์ํธ ํ์ธ</td>
<td>
<input type=password name=pwd2 size=20 id=inputBorder>
<span id=pwd2Layer style="visibility:hidden"></span>
</td>
</tr>
<tr>
<td align=center
onMouseOver="showMsgLayer('nameLayer','์ด๋ฆ์ ์
๋ ฅ๋ฐ๋')"
onMouseOut="hideMsgLayer('nameLayer')"
>์ด๋ฆ</td>
<td>
<input type=text name=name size=20 id=inputBorder>
<span id=nameLayer style="display:none"></span>
</td>
</tr>
<tr>
<td align=center
onMouseOver="showMsgLayer('juminLayer','์ฃผ๋ฏผ๋ฒํธ๋ฅผ ์
๋ ฅ๋ฐ๋')"
onMouseOut="hideMsgLayer('juminLayer')"
>์ฃผ๋ฏผ๋ฑ๋ก๋ฒํธ</td>
<td>
<input type=text name=jumin1 size=6 id=inputBorder
onKeyUp="juminCheck()">
-
<input type=text name=jumin2 size=7 id=inputBorder>
<span id=juminLayer style="visibility:hidden"></span>
</td>
</tr>
<tr>
<td align=center
onMouseOver="showMsgLayer('genderLayer','E-Mail ์
๋ ฅํ์ผ')"
onMouseOut="hideMsgLayer('genderLayer')"
>E-Mail</td>
<td>
<input type=text name=email>
<span id=genderLayer style="visibility:hidden"></span>
</td>
</tr>
<tr>
<td align=center>์ฃผ์</td>
<td>
<input type=text name=zip1 size=3
id=inputBorder maxlength=3> -
<input type=text name=zip2 size=3
id=inputBorder maxlength=3>
<input type=button value="์ฐํธ๋ฒํธ ๊ฒ์" onClick="searchPost()">
<br>
<input type=text name=addr size=50 id=inputBorder>
</td>
</tr>
<tr>
<td colspan=2 align=center>
<input type=submit value="๊ฐ์
">
<input type=reset value="๋ค์ ์์ฑ">
<input type=button value="์ฐฝ๋ซ๊ธฐ"
onClick="window.close()">
</td>
</tr>
</table>
</form>
</body>
</html>
- Total
- Today
- Yesterday
- I Don't Care
- jQuery
- 2ne1
- JS
- JSP
- JSTL
- ์น์์ด์ ์
- ์ธํจ์ด
- ์์์ฌ์ด๋
- ํจ์
- ์นด๋ฐ์จ๋ผ์ธ
- ๊ฒฝ์ ์ฉ์ด
- Ajax
- ์๋ธ๋ฆฟ
- ์๋ฐ์คํฌ๋ฆฝํธ
- JavaScript
- php
- EL
- Java
- MySQL
- ๋์ค
- ๊ธฐํ
- Servlet
- ๋ฉ๋ฐฐํ
- ๋ด๋๋ด์ฐ
- 8๋ง์ผ
- JSON
- asp
- ์๋ฆฌ
- ๋ณต๊ทผ์ด๋
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |