묻고답하기

내용이 쪼금 깁니다. *^0^* 수고스럽겠지만 한번 읽어만 주셔도 감사하고요, 답변까지 해주시면 더더욱 감사하겠습니다. 소스 직접 만들어 주시면 나중에 술한잔..^^


일단 허접하고 여기저기 억지로 끼워맞추고, 어디선가 주워와서 붙여넣고 복사해 넣고한 소스부터 공개하겠습니다. 참고로 저 아무것도 모르는 초보입니다. 뭐라하지 말아 주시기 바랍니다.

------<아래 소스>--------------------------------------------------
<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>나의 점수 알아 보기</title>
<meta name="generator" content="Namo WebEditor v6.0">
<script Language="Javascript">
<!-- //////////////////////////////////////////////////////////////
//*****************************************************************
// Web Site: http://www.CginJs.Com
// CGI 와 JavaScript가 만났을 때 = C.n.J ☞ http://www.CginJs.Com
// CGI 와 JavaScript가 만났을 때 = C.n.J ☞ webmaster@CginJs.Com
// C.n.J 자바스크립트 자동 생성 마법사 ☞ http://www.CginJs.Com
// C.n.J 자바스크립트(JavaScript) 가이드 ☞ http://www.CginJs.Com
// C.n.J CSS(Cascading Style Sheet) 가이드 ☞ http://www.CginJs.Com
// Editer : Web Site: http://www.CginJs.Com
//*****************************************************************
/////////////////////////////////////////////////////////////// -->
document.write('<st'+'yle>');
document.write('td {font-size:12px; font-family:굴림; text-decoration:none; }');
document.write('A:link,A:active,A:visited{text-decoration:none;font-size:12PX;color:#333333;}');
document.write('A:hover {text-decoration:none; color:ff9900}');
document.write('font { font-size: 9pt; }');
document.write('.cnj_input {background-color:rgb(240,240,240);border-width:1pt; height:16pt;cursor:hand;}');
document.write('.cnj_input2 {border-width:1; border-color:rgb(204,204,204); border-style:solid;cursor:hand;}');
document.write('.cnj_input3 { border-width:1; border-style:solid; border-color:#000000; color:#0084D4; background-color:white;cursor:hand;}');
document.write('.cnj_input4 { scrollbar-face-color: #FFCC33;scrollbar-shadow-color: #ffffff;scrollbar-highlight-color: #F3f3f3;scrollbar-3dlight-color: #ffffff;scrollbar-darkshadow-color: #F3f3f3;scrollbar-track-color: #ffffff;scrollbar-arrow-color: #f9f9f9;cursor:hand; }');
document.write('</st'+'yle>');

function checkNum(form) {
var total = 0;
var max = form.cnjchk1.length;
var max = form.cnjchk2.length;
var max = form.cnjchk3.length;
var f = document.cnjform;
for (var idx = 0; idx < max; idx++) {
if (eval("f.cnjchk1[" + idx + "].checked") == true) {
    total += 0;
   }
if (eval("f.cnjchk2[" + idx + "].checked") == true) {
    total += 5;
   }
if (eval("f.cnjchk3[" + idx + "].checked") == true) {
    total += 10;
   }
}
alert("당신의 점수는 " + total + "점 입니다.");
}
</script>

</head>

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p align="center"><b><font size="4">점수 알아 보기</font></b></p>
<table border="1" width="739" cellpadding="0" cellspacing="0" bordercolordark="white" bordercolorlight="black" height="0" align="center">
    <tr>
        <td width="42" rowspan="2" height="40" bgcolor="#FFCC00">
            <p align="center"><font size="2"><b>번호</b></font></p>
</td>
        <td width="358" rowspan="2" height="40" bgcolor="#FFCC00">
            <p align="center"> </p>
</td>
        <td width="331" colspan="3" bgcolor="#FFCC00">
            <p align="center"><font size="2"><b>답변항목(하나만 선택해 주세요)</b></font></p>
</td>
    </tr>
    <tr>
        <td width="94" height="23" bgcolor="#FF9900">
            <p align="center"><font size="2"><b>실천하지 않음</b></font></p>
</td>
        <td width="75" height="23" bgcolor="#FFCC00">
            <p align="center"><font size="2"><b>가끔 실천</b></font></p>
</td>
        <td width="77" height="23" bgcolor="yellow">
            <p align="center"><font size="2"><b>항상 실천</b></font></p>
</td>
    </tr>
    <tr>
        <td width="42" height="28">
1</td>
        <td width="358" height="28">
 </td>
        <td width="94" height="28" bgcolor="#FF9900">
            <form name="cnjform">
                <p align="center"><input type="checkbox" name="cnjchk1"></p>
</td>
        <td width="75" height="28" bgcolor="#FFCC00">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk2"></font></p>
</td>
        <td width="77" height="28" bgcolor="yellow">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk3"></font></p>
</td>
    </tr>
    <tr>
        <td width="42" height="28">
2</td>
        <td width="358" height="28">
 </td>
        <td width="94" height="28" bgcolor="#FF9900">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk1"></font></p>
</td>
        <td width="75" height="28" bgcolor="#FFCC00">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk2"></font></p>
</td>
        <td width="77" height="28" bgcolor="yellow">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk3"></font></p>
</td>
    </tr>
    <tr>
        <td width="42" height="28">
3</td>
        <td width="358" height="28">
 </td>
        <td width="94" height="28" bgcolor="#FF9900">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk1"></font></p>
</td>
        <td width="75" height="28" bgcolor="#FFCC00">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk2"></font></p>
</td>
        <td width="77" height="28" bgcolor="yellow">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk3"></font></p>
</td>
    </tr>
    <tr>
        <td width="42" height="28">
4</td>
        <td width="358" height="28">             </td>
        <td width="94" height="28" bgcolor="#FF9900">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk1"></font></p>
</td>
        <td width="75" height="28" bgcolor="#FFCC00">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk2"></font></p>
</td>
        <td width="77" height="28" bgcolor="yellow">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk3"></font></p>
</td>
    </tr>
    <tr>
        <td width="42" height="28">
5</td>
        <td width="358" height="28">             </td>
        <td width="94" height="28" bgcolor="#FF9900">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk1"></font></p>
</td>
        <td width="75" height="28" bgcolor="#FFCC00">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk2"></font></p>
</td>
        <td width="77" height="28" bgcolor="yellow">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk3"></font></p>
</td>
    </tr>
    <tr>
        <td width="42" height="28">
6</td>
        <td width="358" height="28">             </td>
        <td width="94" height="28" bgcolor="#FF9900">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk1"></font></p>
</td>
        <td width="75" height="28" bgcolor="#FFCC00">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk2"></font></p>
</td>
        <td width="77" height="28" bgcolor="yellow">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk3"></font></p>
</td>
    </tr>
    <tr>
        <td width="42" height="28">
7</td>
        <td width="358" height="28">             </td>
        <td width="94" height="28" bgcolor="#FF9900">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk1"></font></p>
</td>
        <td width="75" height="28" bgcolor="#FFCC00">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk2"></font></p>
</td>
        <td width="77" height="28" bgcolor="yellow">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk3"></font></p>
</td>
    </tr>
    <tr>
        <td width="42" height="28">
8</td>
        <td width="358" height="28">             </td>
        <td width="94" height="28" bgcolor="#FF9900">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk1"></font></p>
</td>
        <td width="75" height="28" bgcolor="#FFCC00">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk2"></font></p>
</td>
        <td width="77" height="28" bgcolor="yellow">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk3"></font></p>
</td>
    </tr>
    <tr>
        <td width="42" height="28">
9</td>
        <td width="358" height="28">             </td>
        <td width="94" height="28" bgcolor="#FF9900">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk1"></font></p>
</td>
        <td width="75" height="28" bgcolor="#FFCC00">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk2"></font></p>
</td>
        <td width="77" height="28" bgcolor="yellow">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk3"></font></p>
</td>
    </tr>
    <tr>
        <td width="42" height="28">
10</td>
        <td width="358" height="28">             </td>
        <td width="94" height="28" bgcolor="#FF9900">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk1"></font></p>
</td>
        <td width="75" height="28" bgcolor="#FFCC00">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk2"></font></p>
</td>
        <td width="77" height="28" bgcolor="yellow">
            <p align="center"><font size="2"><input type="checkbox" name="cnjchk3"></font></p>
</td>
    </tr>
</table>
<p align="center">
<input type="button" value="점수확인해 보기" onClick="checkNum(this.form)" class="cnj_input">
</form>
</p>
</body>

</html>
-----------------<소스 끝>-----------------------------------------

뭐 인터넷에 떠돌아 다니는 소스하나 구해서 대충 억지로 꾸며놨습니다.
소스 보시면 아시는 분들은 모두 아시겠지만 나모FX를 쓰고 있으며, 나모에서 표를 그려서 그 표 안에 각각 폼을 넣고 폼을 선택하면 선택한 폼에 따라 점수를 계산해서 경고창으로 출력하는 것입니다.

이거 소스 찾아 가져다 붙여 만드는데 3시간 걸렸습니다. 아무것도 모르는 사람이 떼였다 붙였다 반복해서 이정도 했다면 인간승리아닙니까? ㅡ,.ㅡV

질문의 본론은 위의 표를 보면..
-------------------------------------------------------
| 1 | 질문넣을 곳 | [체크박스] | [체크박스] |  [체크박스]  |
-------------------------------------------------------
| 2 | 질문넣을 곳 | [체크박스] | [체크박스] |  [체크박스]  |
-------------------------------------------------------
이런 식입니다. 개인용인데요.
이걸 좀 바꿔서 4명이 한번에 이용할 수 있는 페이지로 만들려 합니다.
-------------------------------------------------------------------
|   이름   |   이름   |   번호   |      질문넣을곳          |   이름   |   이름   |
-------------------------------------------------------------------
|ㅁ|ㅁ|ㅁ|ㅁ|ㅁ|ㅁ|     1     |                               |ㅁ|ㅁ|ㅁ|ㅁ|ㅁ|ㅁ|
-------------------------------------------------------------------
|ㅁ|ㅁ|ㅁ|ㅁ|ㅁ|ㅁ|     2     |                               |ㅁ|ㅁ|ㅁ|ㅁ|ㅁ|ㅁ|
-------------------------------------------------------------------
|ㅁ|ㅁ|ㅁ|ㅁ|ㅁ|ㅁ|     3     |                               |ㅁ|ㅁ|ㅁ|ㅁ|ㅁ|ㅁ|
-------------------------------------------------------------------
|ㅁ|ㅁ|ㅁ|ㅁ|ㅁ|ㅁ|     4     |                               |ㅁ|ㅁ|ㅁ|ㅁ|ㅁ|ㅁ|

이런 식으로 바꿀려고 합니다.
물론 밑에 [점수보기]를 클릭하면 모두 4명의 점수가 나타나게요.

질문 1 : 위에 이름을 입력 받을 수 있게 할려면 어떻게 해야합니까?
질문 2 : [점수보기]를 클릭하면 4명의 점수가 한번에 나오게 할려면 어떻게 해야합니까?
질문 3 : 지금 [점수보기]누르면 경고창이 뜨는데 이걸 그냥 새윈도우 열기로 바꿀려면 어떻게 해야 합니까?

이 3가지 질문이 제가 묻고 싶은 것입니다.

혹, 이글 읽으신분 중 알고 계신분께서는 수고스럽겠지만 답변좀 부탁드립니다.

긴 글이지만 읽어주셔서 감사합니다. 항상 행복하시기 바랍니다.




글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
PodongS2 회원가입 폼에서 쪽지 허용 부분 삭제하는 방법좀 부탁드려요 [2] 2014.01.06 by PodongS2
성민파파 xe 1.4.5.2에서 1.7.3.6으로 버전업이 않돼요. [4] file 2014.01.06 by 성민파파
띠로리로리 pc버전에서 모바일 보기로 이동이 안되네요ㅠㅠ 도와주세요 [1] 2014.01.06 by KrteamENT
socialskyo 에디터 글 등록 버튼 위치 [1] file 2014.01.06 by KrteamENT
도쿄핫 송동우님의 votenmove 라는 애드온 .. [1] 2014.01.06 by socialskyo
용초딩 회원가입 제한 메일 설정방법 (163.com) [2] file 2014.01.06 by 용초딩
기술지원 송동우님의 voteNmove 1.7에서도 사용가능하나요? [3] 2014.01.06 by 용초딩
구름나무바위 $oDocument->setAttribute($attribute); <- 해석 좀 부탁합니다. [3] 2014.01.06 by sejin7940
마과마 긴급 도움 요청 - Unable to connect to ssl://ci6.googleusercontent.com:443. [5] 2014.01.06 by 마과마
어려워좌절 익명 게시판에 최고 관리자는 노출이 되는데요...  
마이크로 답장주세요.. [5] 2014.01.06 by 마이크로
pilasry DB 삭제 재설치 후 모듈을 찾을수 없다는 메세지가 뜰때의 해결 방법 [2] 2014.01.06 by pilasry
rallablue A라는 게시판의 글을 B게시판안의 분류로 이동하고싶어요  
손진권 드럽 메뉴 배경 생상 변환 문제 [6] file 2014.01.06 by 손진권
samsick92 문서 모드 고정에 대해 여쭤보고싶습니다. [1] 2014.01.06 by 銀童
MATHIA 외국어버전 로그인 질문이요~ [1] 2014.01.06 by Arp.
김선호725 xe처음 만져봅니다.... [2] file 2014.01.06 by 김선호725
조인잡 첨부파일이 다운로드 되지 않고, 클릭을 하면, "잘못된 요청입니다" 에러만 뜹니다 [3] 2014.01.06 by 조인잡
궁굼자 회원가입시 퀴즈 맞추기 애드온  
라돌체 첨부된 이미지 본문에 불러오기 [2] 2014.01.06 by 라돌체
티지로 웹게임 (cgi,perl로 만등러진) 설치하면 불법인가요? [1] 2014.01.06 by Luatic™
PePe 이게 왜 이런걸까요ㅠ급합니다 [7] file 2014.01.06 by Volun
sulin819 아진짜급한데ㅠㅠㅠㅠ계속 홈페이지 링크가안됀데요ㅠㅠㅠㅠ [1] 2014.01.06 by 야옹이님
디쟈이너 xe 2개 사용가능한가요? [4] 2014.01.06 by 야옹이님
상큼하게 전화번호 링크 시 궁금증입니다. [3] 2014.01.06 by 야옹이님
Spes 베스트 글에 대한 의견을 듣고싶습니다. [2] 2014.01.06 by 야옹이님
이두바끈 모바일 쇼핑몰관련 문의 드려요~ [1] 2014.01.06 by 야옹이님
칼리토 회원들 글이 안써지는 이유는? [답답해요ㅠㅠ] [4] 2014.01.07 by 야옹이님
루피키누스 모바일에서 회원가입시 생일 입력이 되지 않습니다. [1] 2014.01.07 by 야옹이님
야옹이님 헉... 까먹어버렸네요! (1.7.3.6->1.7.3.7)