묻고답하기

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 남기남
쮸쮸봉 호경님 보시면 답변좀..다른분이라두.. [1] 2007.08.10
doglove 중간정렬홈에 우측으로 배너 넣을려면 [1] 2007.08.10
REDsky 팝업창 질문좀 ^_^ [1] 2007.08.10
김동윤 제발좀 도와주세요 ㅠㅠ 하이퍼링크.. [3] 2007.08.10
김동윤 제발좀 도와주세요 ㅠㅠ 하이퍼링크.. [1] 2007.08.10
금인수 홈페이지 접속하는데 다운받아라고 나오는데요 [4] 2007.08.10
쮸쮸봉 이거 왜이러죠 ㅠ? 제발 답변좀 [1] 2007.08.10
노재웅 홈페이지 문제점 파악해주면 계정 드립니다 ㅠ.ㅠ [1] 2007.08.10
문성은 팝업창 소스를 이렇게 해 띄웠는데...ㅜ.ㅜ [2] 2007.08.10
이형영 우측에 있는 레이어가 안 펴지는데요. 해결부탁..  
케이이치 인덱스에서 넘어가면 스크롤이 안생겨요.. [1] 2007.08.10
늘푸른 pre 태그문제  
안정선 왜 " 가 "" 로 되는지.... [4] 2007.08.10
피너츠 메뉴 위치로 움직이는 박스메뉴..(자세한 내용 안에 ``;) [2] 2007.08.10
채은희 아이프레임에 관하여... [1] 2007.08.10
전상규 로그인 질문입니다. [7] 2007.08.10
Plus가좋다 한미르만화책 소스 해석좀 해주세요  
위피 가로스크롤은 없앴는데, 여백과 크기는 영아니네요 ㅠ.ㅠ;; 도와주세요 고수님들 제발 ㅠ.ㅠ [1] 2007.08.10
유세하 새창띄우기가 안됩니다.  
cometwith 작업을 마쳤으나 페이지에 오류가 있습니다. [2] 2007.08.10