라디오버튼과 점프메뉴 연동하는 방법 질문합니다..

라디오버튼과 점프메뉴 연동하는 방법 질문합니다..

QA

라디오버튼과 점프메뉴 연동하는 방법 질문합니다..

답변 1

본문

안녕하세요 ..

 

라디오버튼의 값을 점프메뉴로 연동하여 지정해놓은 URL이 팝업되도록 하고 싶습니다.

 

현재 드림위버로만 작업해놓은 상태라 여기서 어느 부분을 수정해야 할지 궁금하네요 .. ㅠ////ㅠ

 

 


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>무제 문서</title>
<style type="text/css">
#form1 table tr td {
 font-family: "굴림";
}
#form1 table {
 font-size: 12px;
 font-family: "굴림";
}
</style>
<script type="text/javascript">
function MM_jumpMenuGo(objId,targ,restore){ //v9.0
  var selObj = null;  with (document) { 
  if (getElementById) selObj = getElementById(objId);
  if (selObj) eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0; }
}
</script>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
  <table width="200">
    <tr>
      <td><label>
        <input type="radio" name="gubun" value="new" id="gubun_0" />
        신규가입</label></td>
    </tr>
    <tr>
      <td><label>
        <input type="radio" name="gubun" value="mnp" id="gubun_1" />
        번호이동</label></td>
    </tr>
    <tr>
      <td><label>
        <input type="radio" name="gubun" value="change" id="gubun_2" />
        기기변경</label></td>
    </tr>
  </table>
  <select name="jumpMenu" id="jumpMenu">
    <option value="http://naver.com" target="_blank">T끼리 35</option>
    <option value="http://naver.com" target="_blank">T끼리 45</option>
    <option value="http://daum.net" target="_blank">T끼리 55</option>
    <option value="http://daum.net" target="_blank">T끼리 65</option>
    <option value="http://google.com" target="_blank">전국민 무한 69</option>
    <option value="http://google.com" target="_blank">전국민 무한 75</option>
    <option>퍼펙트 무한 80</option>
    <option>전국민 무한 85</option>
    <option>전국민 무한 100</option>
  </select>
  <input type="button" name="go_button" id= "go_button" value="이동" onclick="MM_jumpMenuGo('jumpMenu','parent',0)" />
</form>
</body>
</html>
​

 

 

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 0
© SIRSOFT
현재 페이지 제일 처음으로