묻고답하기

http://www.kjga.or.kr/test.html<html>
<head>
<script language = "javascript">
//상위 셀렉트로 하위 셀렉트 제어하기
function showSub(obj) {

    f = document.forms.select_machine;

    if(obj == 1) {
    
        f.SUB1.style.display = "";
        f.SUB2.style.display = "none";
        f.SUB3.style.display = "none";
        f.SUB4.style.display = "none";
        f.SUB5.style.display = "none";
        f.SUB6.style.display = "none";
        f.SUB7.style.display = "none";
        f.SUB8.style.display = "none";
        f.SUB9.style.display = "none";
        f.SUB10.style.display = "none";

    }
        if(obj == 2) {
    
        f.SUB1.style.display = "none";
        f.SUB2.style.display = "";
        f.SUB3.style.display = "none";
        f.SUB4.style.display = "none";
        f.SUB5.style.display = "none";
        f.SUB6.style.display = "none";
        f.SUB7.style.display = "none";
        f.SUB8.style.display = "none";
        f.SUB9.style.display = "none";
        f.SUB10.style.display = "none";

    }
        if(obj == 3) {
    
        f.SUB1.style.display = "none";
        f.SUB2.style.display = "none";
        f.SUB3.style.display = "";
        f.SUB4.style.display = "none";
        f.SUB5.style.display = "none";
        f.SUB6.style.display = "none";
        f.SUB7.style.display = "none";
        f.SUB8.style.display = "none";
        f.SUB9.style.display = "none";
        f.SUB10.style.display = "none";

    }
        if(obj == 4) {
    
        f.SUB1.style.display = "none";
        f.SUB2.style.display = "none";
        f.SUB3.style.display = "none";
        f.SUB4.style.display = "";
        f.SUB5.style.display = "none";
        f.SUB6.style.display = "none";
        f.SUB7.style.display = "none";
        f.SUB8.style.display = "none";
        f.SUB9.style.display = "none";
        f.SUB10.style.display = "none";

    }
        if(obj == 5) {
    
        f.SUB1.style.display = "none";
        f.SUB2.style.display = "none";
        f.SUB3.style.display = "none";
        f.SUB4.style.display = "none";
        f.SUB5.style.display = "";
        f.SUB6.style.display = "none";
        f.SUB7.style.display = "none";
        f.SUB8.style.display = "none";
        f.SUB9.style.display = "none";
        f.SUB10.style.display = "none";

    }
        if(obj == 6) {
    
        f.SUB1.style.display = "none";
        f.SUB2.style.display = "none";
        f.SUB3.style.display = "none";
        f.SUB4.style.display = "none";
        f.SUB5.style.display = "none";
        f.SUB6.style.display = "";
        f.SUB7.style.display = "none";
        f.SUB8.style.display = "none";
        f.SUB9.style.display = "none";
        f.SUB10.style.display = "none";

    }
        if(obj == 7) {
    
        f.SUB1.style.display = "none";
        f.SUB2.style.display = "none";
        f.SUB3.style.display = "none";
        f.SUB4.style.display = "none";
        f.SUB5.style.display = "none";
        f.SUB6.style.display = "none";
        f.SUB7.style.display = "";
        f.SUB8.style.display = "none";
        f.SUB9.style.display = "none";
        f.SUB10.style.display = "none";

    }
        if(obj == 8) {
    
        f.SUB1.style.display = "none";
        f.SUB2.style.display = "none";
        f.SUB3.style.display = "none";
        f.SUB4.style.display = "none";
        f.SUB5.style.display = "none";
        f.SUB6.style.display = "none";
        f.SUB7.style.display = "none";
        f.SUB8.style.display = "";
        f.SUB9.style.display = "none";
        f.SUB10.style.display = "none";

    }
        if(obj == 9) {
    
        f.SUB1.style.display = "none";
        f.SUB2.style.display = "none";
        f.SUB3.style.display = "none";
        f.SUB4.style.display = "none";
        f.SUB5.style.display = "none";
        f.SUB6.style.display = "none";
        f.SUB7.style.display = "none";
        f.SUB8.style.display = "none";
        f.SUB9.style.display = "";
        f.SUB10.style.display = "none";

    }
        if(obj == 10) {
    
        f.SUB1.style.display = "none";
        f.SUB2.style.display = "none";
        f.SUB3.style.display = "none";
        f.SUB4.style.display = "none";
        f.SUB5.style.display = "none";
        f.SUB6.style.display = "none";
        f.SUB7.style.display = "none";
        f.SUB8.style.display = "none";
        f.SUB9.style.display = "none";
        f.SUB10.style.display = "";

    }
}
function goURL()
{
    if(this.go.value != "default")
    {
    URL = this.go.value
    window.open(URL,'_self','+ '+ '')
    }
}
</script>
</head>

<body>
<table cellpadding="0" cellspacing="0" width="500" border="0">
<tr>
<td width="100">
<form name="select_machine">

<!--상위 셀렉트박스-->
<select name=" " onChange="showSub(this.options[this.selectedIndex].value);">
<option value="1">1990</option>
<option value="2">1991</option>
<option value="3">1992</option>
<option value="4">1993</option>
<option value="5">1994</option>
<option value="6">1995</option>
<option value="7">1996</option>
<option value="8">1997</option>
<option value="9">1998</option>
<option value="10">1999</option>
</select>
</td>
<td width="300">
<!--//여기부턴 하위셀렉트박스-->
<select name="SUB1" style="display:block;"onChange="return goURL()">
<option value="http://www.naver.com">제 1회 한국 중.고등학교 골프연맹회장배  </option>
<option value="http://www.naver.com">제 1회 스포츠조선-엘로드배 </option>
<option value="http://www.naver.com">제 1회 KGM-그린국제골프배 </option>
</select>

<select name="SUB2" style="display: none;"onChange="return goURL()">
<option value="">제 2회 한국 중.고등학교 골프연맹회장배 </option>
<option value="">제 2회 스포츠조선-엘로드배 </option>
<option value="">제 2회 KGM-그린국제골프배 </option>
</select>

<select name="SUB3" style="display: none;"onChange="return goURL()">
<option value=" ">제 3회 한국 중.고등학교 골프연맹회장배 </option>
<option value=" ">제 3회 스포츠조선-엘로드배 </option>
<option value=" ">제 3회 KGM-그린국제골프배 </option>
</select>

<select name="SUB4" style="display:none;"onChange="return goURL()">
<option value=" ">제 4회 한국 중.고등학교 골프연맹회장배  </option>
<option value=" ">제 4회 스포츠조선-엘로드배 </option>
<option value=" ">제 4회 KGM-그린국제골프배 </option>
</select>

<select name="SUB5" style="display: none;"onChange="return goURL()">
<option value=" ">제 5회 한국 중.고등학교 골프연맹회장배 </option>
<option value=" ">제 5회 스포츠조선-엘로드배 </option>
<option value=" ">제 5회 KGM-그린국제골프배 </option>
<option value=" ">제 1회 파맥스배 </option>
</select>

<select name="SUB6" style="display: none;"onChange="return goURL()">
<option value=" ">제 6회 한국 중.고등학교 골프연맹회장배 </option>
<option value=" ">제 6회 스포츠조선-엘로드배 </option>
<option value=" ">제 6회 KGM-그린국제골프배 </option>
<option value=" ">제 2회 파맥스배 회</option>
</select>

<select name="SUB7" style="display:none;"onChange="return goURL()">
<option value=" ">제 7회 한국 중.고등학교 골프연맹회장배 </option>
<option value=" ">제 7회 스포츠조선-엘로드배 </option>
<option value=" ">제 7회 KGM-그린국제골프배 </option>
<option value=" ">제 3회 파맥스배 </option>
</select>

<select name="SUB8" style="display: none;"onChange="return goURL()">
<option value=" ">제 8회 한국 중.고등학교 골프연맹회장배 </option>
<option value=" ">제 2회 스포츠조선-엘로드배 </option>
<option value=" ">제 2회 KGM-그린국제골프배 </option>
</select>

<select name="SUB9" style="display: none;"onChange="return goURL()">
<option value=" ">제 9회 한국 중.고등학교 골프연맹회장배 </option>
<option value=" ">제 3회 스포츠조선-엘로드배 </option>
<option value=" ">제 3회 KGM-그린국제골프배 </option>
</select>

<select name="SUB10" style="display: none;"onChange="return goURL()">
<option value=" ">제 10회 한국 중.고등학교 골프연맹회장배 </option>
<option value=" ">제 3회 스포츠조선-엘로드배 </option>
<option value=" ">제 3회 KGM-그린국제골프배 </option>
</select>

</td>
<td width="100">
<input type = "button" value="이동" onclick="javascript:goURL()">
</td>
</tr>
</table>

</form>

</html>

-----------------------------------------------------------------
다중선택창인데요...년도선택하구...대회선택하구 이동버튼 누르면 이동해야대는데...어케 이동시키나요??
소스좀 알려주세요..ㅠㅠ
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
JerryGoldman 추천 비추천 모듈 문구변경 [2] 2015.07.10 by JerryGoldman
닉쿤이얌 파일 첨부시 Error Code: HTTP Error, File name ... Message: 500 [2] file 2015.07.08 by 닉쿤이얌
띠링띠링 게시판 글씨 색깔 어떻게 바꾸는지 알려주세요 [2] file 2015.07.02 by 띠링띠링
한이파파 내용직접입력하기에서 input 입력 -> iframe 출력  
나라보자구나 외국 블루호스트에 xe 설치하는데 [5] 2015.06.24 by 초보해외유저
XE모듈 좌측배너 질문합니다.  
BESETO 1.7.4 의 사이트맵 이용방법? [12] file 2015.06.04 by 건즈
KimTAJO 모듈 내 proc 메소드가 실행이 되지 않습니다. [3] 2015.06.02 by KimTAJO
tkwhd123 '일정시작, 일정종료 ...'이거 매우 거슬려요 어떻게 삭제하나요? [15] file 2015.06.01 by tkwhd123
피토크라에스 새로고침 없는 추천,비추천 카운터에 대해 질문 드립니다 [2] 2015.05.31 by 피토크라에스
엠투유 메뉴링크 이미지가 안올라가요ㅠ.ㅠ 흐엉 [1] file 2015.05.28 by I-JEX
JUNG 홈페이지 만드는 회사입니당! [2] 2015.05.27 by Double'U'
Editor98 윅스 메인 페이지에 콘텐츠 위젯으로 최근 게시물 표시 중... [5] file 2015.05.26 by YJSoft
YBb4b49 XE 첫화면 최신글 위젯이 궁금합니다 [2] file 2015.05.23 by flowerrain
불금 쿠폰 모듈 버그 어떻게 해결할수 있을까요..? file  
오지현5c81d 홈페이지를 만들었는데 주소를 치고 들어가면 이상한 페이지가 떠요ㅠㅠ [1] 2015.05.20 by 몽실아빠
줄앤짐 XEdition Demo 부분에서 중간에 나오는 내용은 어디서 수정하나요?? [2] file 2015.05.18 by 줄앤짐
피씨토머 HTTP500 내부서버 오류 [1] 2015.05.10 by ehii
착한동구 트래픽위젯 설치좀 도와주세요  
hoss PHP5.2.13에서 5.6으로 업그레이드후 에러발생 [4] 2015.05.05 by hoss