묻고답하기

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 남기남
bornljg 고수님들 이것좀 도와주세요 벌써 5일째 진도가 안나가요 ㅋ [1] 2007.08.10
정종호 정말 미치겠어요 ㅠㅠ 도와주세요 (최근게시물) [1] 2007.08.10
김창식 노프래임 질문좀여 [6] 2007.08.10
김창식 헬프 ~~~ ㅠㅠ [3] 2007.08.10
김지영 다중선택창선택하고 이동시키기  
졸라맥 img src 문제..  
김근우 fedora core 4 설치후 제로보드실행문제  
전병철 급합니다...원프레임 질문드려요... [2] 2007.08.10
insideJS 홈페이지에 뜨는 공지사항 창에 대해서요  
jjaekim 아파치 httpd.conf에서 alias 부분 설정 질문드립니다. [1] 2007.08.10
insideJS 홈페이지 공지사항 창에 대한 질문이요  
쏘닉 가로배너슬라이드소스 관련.... [1] 2007.08.10
강율구 배경음악 급질문 입니다 소스 있음. [1] 2007.08.10
youdw 페도라.. 일반사용자 ftp접속이 안됩니다.도움바랍니다.  
SADF 몇일 째 고민하고 있어요 좀 부탁드릴께요 도와주세요.[bgm]loveplyer 6.4 재생질문..  
김경완 플래쉬 점선 없애는 방법좀 알려주세요. [1] 2007.08.10
홀스 영어, 숫자만 되는 검색엔진 - 한글도 검색되게 할 순 없나요  
송승환 흠 웹 관련 질문을 하겠는데.. [1] 2007.08.10
이준 리눅스 서버관리 실무바이블 v2.0 (上,下 총2권) 팔아요  
momoforu 링크된 사진 크기 변경 관련 질문 [1] 2007.08.10