저번에 했다고 올린거 있는데 거기서 이제 버튼 아래에 있는 부분은 버튼은 클릭 했을 때 에만 출력 할 수 있게 만들고 있는데
현재 여기까지 햇는데 아래 테이블의 배경색은 따로 빼지를 못하고 있어
버튼을 클릭했을때만 테이블 안에 배경색깔도 나오게 하고 싶은데 누구 아는 흉 있어?
밑에 소스 올릴게
에디트 플러스로 작업중이야 ~
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Deion" content="">
< type="text/" language=\'\'>
function output(){
// 2번째 테이블 입력 하신 정보
var table=document.createElement(\'table\');
var tr=document.createElement(\'tr\');
var td=document.createElement(\'td\');
tr.appendChild(td);
table.appendChild(tr);
var whereTable=document.getElementById("info_input");
whereTable.appendChild(table);
var createInfo_input_div = document.getElementById("info_input_div");
createInfo_input_div.innerHTML="입력하신 정보";
//2번째 테이블 밑줄 출력
var create_nextTable_underWrite = document.getElementById("nextTable_underWrite");
create_nextTable_underWrite.innerHTML="<hr>";
//2번째 테이블 아이디 라벨 출력
var whereTable_second_id_label=document.getElementById("second_id_label");
whereTable_second_id_label.appendChild(table);
var create_second_id_label_div = document.getElementById("create_second_id_label_div");
create_second_id_label_div.innerHTML="아이디";
//입력한 아이디 출력
var textdiv = document.getElementById("testDiv");
var text_id = document.getElementById("text_id");
textdiv.innerHTML = text_id.value;
if( text_id.value=="null")
alert("아이디를 입력 하세요");
//pwd 값 얻어오기
var text_pwd1 = document.getElementById("text_pwd1");
var text_pwd2= document.getElementById("text_pwd2");
//pwd1,pwd2를 비교
if(text_pwd1.value==text_pwd2.value){
var nate_black = document.getElementById("nate_black");
nate_black.innerHTML="@nate.com";
//입력한 비밀번호 출력
var pwddiv = document.getElementById("pwdDiv");
var text_pwd1 = document.getElementById("text_pwd1");
pwddiv.innerHTML = text_pwd1.value;
}else{
alert("입력하신 비밀번호가 다릅니다.");
}
// 전화 번호 label
var labelContackNumber = document.getElementById("labelContackNumber");
var text_labelContackNumber = \'전화번호\';
labelContackNumber.innerHTML = text_labelContackNumber;
//지역 번호 출력
var regionNumber = document.getElementById("regionNumber");
var text_regionNumber =document.getElementById("regionNumberOption");
regionNumber.innerHTML= text_regionNumber.value;
//contackNumberBar1 출력
var contackNumberBar1 = document.getElementById("contackNumberBar1");
contackNumberBar1.innerHTML =\'-\';
//firstContackNumber 출력
var firstContackNumber = document.getElementById("firstContackNumber");
var text_firstContackNumber = document.getElementById("secondNumber");
firstContackNumber.innerHTML = text_firstContackNumber.value;
//contackNumberBar2 출력
var contackNumberBar1 = document.getElementById("contackNumberBar2");
contackNumberBar1.innerHTML =\'-\';
//secondContackNumber 출력
var firstContackNumber = document.getElementById("secondContackNumber");
var text_firstContackNumber = document.getElementById("thirdNumber");
firstContackNumber.innerHTML = text_firstContackNumber.value;
//labelPhoneNumber 출력
var labelPhoneNumber = document.getElementById("labelPhoneNumber");
labelPhoneNumber.innerHTML= \'휴대폰\';
var corporationNumber = document.getElementById("corporationNumber");
var text_corporationNumber =document.getElementById("phoneFirstNumOption");
corporationNumber.innerHTML= text_corporationNumber.value;
//phoneNumberBar1 출력
var phoneNumberBar1 = document.getElementById("phoneNumberBar1");
phoneNumberBar1.innerHTML =\'-\';
//firstContackNumber 출력
var firstPhoneNumber = document.getElementById("firstPhoneNumber");
var text_firstPhoneNumber = document.getElementById("firstPhonNumber");
firstPhoneNumber.innerHTML = text_firstPhoneNumber.value;
var phoneNumberBar2 = document.getElementById("phoneNumberBar2");
phoneNumberBar2.innerHTML =\'-\';
//secondPhoneNumber 출력
var secondPhoneNumber = document.getElementById("secondPhoneNumber");
var text_secondPhoneNumber = document.getElementById("secondPhonNumber");
secondPhoneNumber.innerHTML = text_secondPhoneNumber.value;
//birthYear 출력
var birthYear = document.getElementById("birthYear");
var text_birthYear = document.getElementById("year");
birthYear.innerHTML = text_birthYear.value+\' 년\';
//birthMonth 출력
var birthMonth = document.getElementById("birthMonth");
var text_MonthYear = document.getElementById("month");
birthMonth.innerHTML = text_MonthYear.value+\' 월\';
//birthDay출력
var birthDay = document.getElementById("birthDay");
var text_DayYear = document.getElementById("Day");
birthDay.innerHTML = text_DayYear.value+\' 일\';
//양력 음력 출력
function getRadioButtonValue( radioField ) {
for (var i =0; i<radioField.length; i++) {
if( radioField[i].checked == true ) {
return radioField[i].value;
}
}
}
var radioValue = getRadioButtonValue(document.theForm.testRadio);
var carlendar = document.getElementById("calendar");
carlendar.innerHTML = radioValue;
//메일 수신 여부 출력
function getRadioButtonValue( radioField ) {
for (var i =0; i<radioField.length; i++) {
if( radioField[i].checked == true ) {
return radioField[i].value;
}
}
}
var mailRadio = getRadioButtonValue(document.theForm.mailRadio);
var mail = document.getElementById("mail");
mail.innerHTML = mailRadio;
}
</>
</head>
<body>
<form name="theForm" method="">
<table>
<tr>
<td>
<font size="2" ><strong>아이디 발급</strong></font>
<td>
</tr>
</table>
<hr>
<table name="ID">
<tr>
<td align = "left" bgcolor="#EBFBFF" height="50" width="100" style="padding-left:20px; padding-center:20px;">
<font size="2" ><strong>아이디</strong></font>
</td>
<td width="270" align="center" >
<input type="text" name="text_id"> <font size="2"> <strong>@ nate.com</strong> </font>
</td>
</tr>
</table>
<hr>
<br>
<font size="2" ><strong>회원 정보 입력</strong></font>
<hr>
<table cellspacing="0" border="0" >
<tr >
<td align = "left" " height="45" width="100" bgcolor="#EBFBFF" style=" padding-left:20px; padding-center:20px;">
<font size="2" ><strong>비밀번호</strong></font>
</td>
<td width="185" align="center" width="300">
<input type="password" name="text_pwd1" size="21">
</td>
</tr>
<tr>
<td align = "left" " height="45" width="100" bgcolor="#EBFBFF"style=" padding-left:20px; padding-center:20px;" >
<font size="2" ><strong>비밀번호 확인</strong></font>
</td>
<td width="185" align="center" >
<input type="password" name="text_pwd2" size="21">
</td>
</tr>
</table>
<table border="0" cellspacing="0">
<tr>
<td align = "left" " height="45" width="100" bgcolor="#EBFBFF" style=" padding-left:20px; padding-center:20px;">
<font size="2" ><strong>연락처</strong></font>
</td>
<td>
<font size="2"style=" padding-left:20px;padding-center:20px;"" face="바탕체">전화번호</font>
</td>
<td style=" padding-left:20px;" name = "">
<select name="regionNumberOption">
<option value="02">02</option>
<option value="031">031</option>
<option value="032">032</option>
<option value="033">033</option>
<option value="041">041</option>
<option value="042">042</option>
<option value="043">043</option>
<option value="044">044</option>
<option value="051">051</option>
<option value="052">052</option>
<option value="053">053</option>
</select>
</td>
<td>
-
</td>
<td>
<input type="text" name="secondNumber" size="10">
</td>
<td>
-
</td>
<td>
<input type="text" name="thirdNumber" size="10">
</td>
</tr>
</table>
<table border="0" cellspacing="0" name="contackPhonNumber">
<tr>
<td align = "left" " height="45" width="100" bgcolor="#EBFBFF" style=" padding-left:20px; padding-center:20px;">
<font size="2" ></font>
</td>
<td >
<font size="2"style=" padding-left:20px;padding-center:20px;"" face="바탕체">휴대폰</font>
</td>
<td style=" padding-left:34px;" >
<select name="phoneFirstNumOption">
<option value="010">010</option>
<option value="011">011</option>
<option value="016">016</option>
<option value="017">017</option>
<option value="018">018</option>
<option value="019">019</option>
</select>
</td>
<td>
-
</td>
<td>
<input type="text" name="firstPhonNumber" size="10">
</td>
<td>
-
</td>
<td>
<input type="text" name="secondPhonNumber" size="10">
</td>
</tr>
</table>
</table>
<table border="0" cellspacing="0" name="contackNumber">
<tr>
<td align = "left" " height="45" width="100" bgcolor="#EBFBFF" style=" padding-left:20px; padding-center:20px;">
</td>
<td style=" padding-left:20px;">
<font size="1" face="굴림" color="#7B68EE" >전화번호 또는 휴대폰 중 1개를 선택하여 입력하시면 됩니다.</font>
</td>
<table border="0" cellspacing="0" name="contackNumber">
<tr>
<td align = "left" " height="45" width="100" bgcolor="#EBFBFF" style=" padding-left:20px; padding-center:20px;"><font size="2"><strong>생년월일</strong> </font>
</td>
<td style=" padding-left:20px;">
<select id="year">
<option value=\'\'>----</option><option value=\'2011\'>2011</option><option value=\'2010\'>2010</option><option value=\'2009\'>2009</option><option value=\'2008\'>2008</option><option value=\'2007\'>2007</option><option value=\'2006\'>2006</option><option value=\'2005\'>2005</option><option value=\'2004\'>2004</option><option value=\'2003\'>2003</option><option value=\'2002\'>2002</option><option value=\'2001\'>2001</option><option value=\'2000\'>2000</option><option value=\'1999\'>1999</option><option value=\'1998\'>1998</option><option value=\'1997\'>1997</option><option value=\'1996\'>1996</option><option value=\'1995\'>1995</option><option value=\'1994\'>1994</option><option value=\'1993\'>1993</option><option value=\'1992\'>1992</option><option value=\'1991\'>1991</option><option value=\'1990\'>1990</option><option value=\'1989\'>1989</option><option value=\'1988\'>1988</option><option value=\'1987\'>1987</option><option value=\'1986\'>1986</option><option value=\'1985\'>1985</option><option value=\'1984\'>1984</option><option value=\'1983\'>1983</option><option value=\'1982\'>1982</option><option value=\'1981\'>1981</option><option value=\'1980\'>1980</option><option value=\'1979\'>1979</option><option value=\'1978\'>1978</option><option value=\'1977\'>1977</option><option value=\'1976\'>1976</option><option value=\'1975\'>1975</option><option value=\'1974\'>1974</option><option value=\'1973\'>1973</option><option value=\'1972\'>1972</option><option value=\'1971\'>1971</option><option value=\'1970\'>1970</option><option value=\'1969\'>1969</option><option value=\'1968\'>1968</option><option value=\'1967\'>1967</option><option value=\'1966\'>1966</option><option value=\'1965\'>1965</option><option value=\'1964\'>1964</option><option value=\'1963\'>1963</option><option value=\'1962\'>1962</option><option value=\'1961\'>1961</option><option value=\'1960\'>1960</option><option value=\'1959\'>1959</option><option value=\'1958\'>1958</option><option value=\'1957\'>1957</option><option value=\'1956\'>1956</option><option value=\'1955\'>1955</option><option value=\'1954\'>1954</option><option value=\'1953\'>1953</option><option value=\'1952\'>1952</option><option value=\'1951\'>1951</option><option value=\'1950\'>1950</option><option value=\'1949\'>1949</option><option value=\'1948\'>1948</option><option value=\'1947\'>1947</option><option value=\'1946\'>1946</option><option value=\'1945\'>1945</option><option value=\'1944\'>1944</option><option value=\'1943\'>1943</option><option value=\'1942\'>1942</option><option value=\'1941\'>1941</option><option value=\'1940\'>1940</option><option value=\'1939\'>1939</option><option value=\'1938\'>1938</option><option value=\'1937\'>1937</option><option value=\'1936\'>1936</option><option value=\'1935\'>1935</option><option value=\'1934\'>1934</option><option value=\'1933\'>1933</option><option value=\'1932\'>1932</option><option value=\'1931\'>1931</option><option value=\'1930\'>1930</option><option value=\'1929\'>1929</option><option value=\'1928\'>1928</option><option value=\'1927\'>1927</option><option value=\'1926\'>1926</option><option value=\'1925\'>1925</option><option value=\'1924\'>1924</option><option value=\'1923\'>1923</option><option value=\'1922\'>1922</option><option value=\'1921\'>1921</option><option value=\'1920\'>1920</option><option value=\'1919\'>1919</option><option value=\'1918\'>1918</option><option value=\'1917\'>1917</option><option value=\'1916\'>1916</option><option value=\'1915\'>1915</option><option value=\'1914\'>1914</option><option value=\'1913\'>1913</option><option value=\'1912\'>1912</option><option value=\'1911\'>1911</option>
</select> 년
<select id="month">
<option value=\'\'>--</option><option value=\'01\'>1</option><option value=\'02\'>2</option><option value=\'03\'>3</option><option value=\'04\'>4</option><option value=\'05\'>5</option><option value=\'06\'>6</option><option value=\'07\'>7</option><option value=\'08\'>8</option><option value=\'09\'>9</option><option value=\'10\'>10</option><option value=\'11\'>11</option><option value=\'12\'>12</option>
</select> 월
<select id="day">
<option value=\'\'>--</option><option value=\'01\'>1</option><option value=\'02\'>2</option><option value=\'03\'>3</option><option value=\'04\'>4</option><option value=\'05\'>5</option><option value=\'06\'>6</option><option value=\'07\'>7</option><option value=\'08\'>8</option><option value=\'09\'>9</option><option value=\'10\'>10</option><option value=\'11\'>11</option><option value=\'12\'>12</option><option value=\'13\'>13</option><option value=\'14\'>14</option><option value=\'15\'>15</option><option value=\'16\'>16</option><option value=\'17\'>17</option><option value=\'18\'>18</option><option value=\'19\'>19</option><option value=\'20\'>20</option><option value=\'21\'>21</option><option value=\'22\'>22</option><option value=\'23\'>23</option><option value=\'24\'>24</option><option value=\'25\'>25</option><option value=\'26\'>26</option><option value=\'27\'>27</option><option value=\'28\'>28</option><option value=\'29\'>29</option><option value=\'30\'>30</option><option value=\'31\'>31</option>
</select> 일
<input type="radio" name="testRadio" value="양력"/> 양력
<input type="radio" name="testRadio" value="음력"/> 음력
</td>
<tr>
<td align = "left" bgcolor="#EBFBFF" height="50" width="100" style="padding-left:20px; padding-center:20px;">
<font size="2" ><strong>메일 수신 여부</strong></font>
</td>
<td style=" padding-left:20px;">
<input type="radio" name="mailRadio" value="수신함"/> 수신함
<input type="radio" name="mailRadio" value="수신안함"/> 수신안함
<font size="1" face="굴림" color="#7B68EE" style=" padding-left:20px; padding-center:20px;">메일 수신을 선택하시면 다양한 서비스와 이벤트 등 유용한 정보를 받아보실 수 있습니다.</font>
</td>
</tr>
</table>
<hr>
<table align="center">
<br>
<br>
<tr>
<td>
<img src=" and Settings\\Administrator\\바탕 화면\\eclipse-jee-indigo-win32\\dom\\exDom\\button.jpg" ="output();" style=\'cursor:hand\'></img>
</td>
</tr>
</table >
<table>
<tr>
<td id="info_input">
<font size="2" ><strong><div id="info_input_div"> </strong></font>
</td>
</tr>
</table>
<table>
<tr>
<td width="2000" id="nextTable_underWrite">
<div id="underWrite"></div>
</td>
</tr>
</table>
<table cellspacing="0">
<tr id="second_id_label_tr">
<td id="second_id_label" align = "left" " height="45" width="100" bgcolor="#EBFBFF" style=" padding-left:20px; padding-center:20px;"><font size="2" ><strong><div id="create_second_id_label_div"></div></strong></font>
</td>
<td width="110" align="left" width="300" style=" padding-left:20px; padding-center:20px;" >
<font size="3" face="굴림" color="#7B68EE" > <div id=\'testDiv\'> </div>
</font>
</td>
<td width="110" align="left" width="300" style=" padding-left:20px; padding-center:20px;" >
<font size="2" face="굴림" color="black" > <div id=\'nate_black\'> </div> </font>
</td>
</tr>
<tr>
<td align = "left" " height="45" width="100" bgcolor="#EBFBFF" style=" padding-left:20px; padding-center:20px;"><font size="2" ><strong>비밀 번호</strong></font>
</td>
<td width="110" align="left" width="300" style=" padding-left:20px; padding-center:20px;" >
<font size="3" face="굴림" color="#7B68EE" > <div id=\'pwdDiv\'> </div> </font>
</td>
</tr>
<!-- 입력한 정보 출력(연락처 테이블)-->
<table cellspacing="0">
<tr>
<td align = "left" " height="45" width="100" bgcolor="#EBFBFF" style=" padding-left:20px; padding-center:20px;"><font size="2" ><strong>연락처</strong></font>
</td>
<td width="92" align="left" style=" padding-left:20px; padding-center:20px;" >
<font size="2" face="굴림" color="black" > <div id=\'labelContackNumber\'> </div> </font>
</td>
<td align="left" style=" padding-left:20px; padding-center:20px;" >
<font size="2" face="굴림" color="#7B68EE"> <div id=\'regionNumber\'> </div> </font>
</td>
<!-- bar-->
<td align="left" style=" padding-left:10px; padding-center:20px;" >
<font size="2" face="굴림" color="black"> <div id=\'contackNumberBar1\'> </div> </font>
</td>
<td align="left" style=" padding-left:10px; padding-center:20px;" >
<font size="2" face="굴림" color="#7B68EE"> <div id=\'firstContackNumber\'> </div> </font>
</td>
<!-- bar-->
<td align="left" style=" padding-left:10px; padding-center:20px;" >
<font size="2" face="굴림" color="black"> <div id=\'contackNumberBar2\'> </div> </font>
</td>
<td align="left" style=" padding-left:10px; padding-center:20px;" >
<font size="2" face="굴림" color="#7B68EE"> <div id=\'secondContackNumber\'> </div> </font>
</td>
</tr>
<tr>
<!-- 휴대폰 -->
<td align = "left" " height="45" width="100" bgcolor="#EBFBFF" style=" padding-left:20px; padding-center:20px;"><font size="2" ><strong></strong></font>
<td width="92" align="left" style=" padding-left:20px; padding-center:20px;" >
<font size="2" face="굴림" color="black" > <div id=\'labelPhoneNumber\'> </div> </font>
</td>
<!-- 통신사 -->
<td align="left" style=" padding-left:20px; padding-center:20px;" >
<font size="2" face="굴림" color="#7B68EE"> <div id=\'corporationNumber\'> </div> </font>
</td>
<!-- 바 -->
<td align="left" style=" padding-left:10px; padding-center:20px;" >
<font size="2" face="굴림" color="black"> <div id=\'phoneNumberBar1\'></div> </font>
</td>
<!-- 첫번째 번호 -->
<td align="left" style=" padding-left:10px; padding-center:20px;" >
<font size="2" face="굴림" color="#7B68EE"> <div id=\'firstPhoneNumber\'> </div> </font>
</td>
<!-- 바 -->
<td align="left" style=" padding-left:10px; padding-center:20px;" >
<font size="2" face="굴림" color="black"> <div id=\'phoneNumberBar2\'></div> </font>
</td>
<!-- 두번째 번호-->
<td align="left" style=" padding-left:10px; padding-center:20px;" >
<font size="2" face="굴림" color="#7B68EE"> <div id=\'secondPhoneNumber\'> </div> </font>
</td>
</tr>
</table>
</table>
<table cellspacing=\'0\'>
<tr>
<td align = "left" " height="45" width="100" bgcolor="#EBFBFF" style=" padding-left:20px; padding-center:20px;"><font size="2" ><strong>생년 월일</strong></font>
</td>
<td width="92" align="left" style=" padding-left:20px; padding-center:20px;" >
</td>
<td width="50" align="left" style=" padding-left:20px; padding-center:20px;" >
<font size="2" face="굴림" color="#7B68EE" > <div id=\'birthYear\'> </div> </font>
</td>
<td width="40" align="left" style=" padding-left:20px; padding-center:20px;" >
<font size="2" face="굴림" color="#7B68EE" > <div id=\'birthMonth\'> </div> </font>
</td>
<td width="40" align="left" style=" padding-left:20px; padding-center:20px;" >
<font size="2" face="굴림" color="#7B68EE" > <div id=\'birthDay\'> </div> </font>
</td>
<td width="40" align="left" style=" padding-left:20px; padding-center:20px;" >
<font size="2" face="굴림" color="#7B68EE" > <div id=\'calendar\'> </div> </font>
</td>
</tr>
</table>
<table cellspacing=\'0\'>
<tr>
<td align = "left" " height="45" width="100" bgcolor="#EBFBFF" style=" padding-left:20px; padding-center:20px;"><font size="2" ><strong>메일 수신 여부</strong></font>
</td>
<td width="92" align="left" style=" padding-left:20px; padding-center:20px;" >
</td>
<td width="100" align="left" style=" padding-left:20px; padding-center:20px;" >
<font size="2" face="굴림" color="#7B68EE" > <div id=\'mail\'> </div> </font>
</td>
</tr>
</table>
</form>
</body>
</html>
파일도 첨부했어
댓글 영역
획득법
① NFT 발행
작성한 게시물을 NFT로 발행하면 일주일 동안 사용할 수 있습니다. (최초 1회)
② NFT 구매
다른 이용자의 NFT를 구매하면 한 달 동안 사용할 수 있습니다. (구매 시마다 갱신)
사용법
디시콘에서지갑연결시 바로 사용 가능합니다.