체크박스를 클릭하면 이동하는 체크박스 메뉴 스크립트 > 개발자팁

개발자팁

개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.

체크박스를 클릭하면 이동하는 체크박스 메뉴 스크립트 정보

JavaScript 체크박스를 클릭하면 이동하는 체크박스 메뉴 스크립트

첨부파일

move.html (1.0K) 98회 다운로드 2005-06-13 14:56:46

본문

<html>
<head>
<title> 그누짱 </title>
<meta http-equiv=content-type content=text/html; charset=euc-kr>

<script>
function leapTo (link)  {
  var new_url=link;
  if (  (new_url != "")  &&  (new_url != null)  )
// 프레임에 넣지 않을경우
          window.location=new_url;
// 프레임에 넣을경우
//          parent.프레임명.location=new_url;
  else
      alert("n메뉴를 선택 하세요");
  }
</script>

<!-------------- 여기까지 ---------------->

</head>

<body>


<table border=1 width=100>
<form>
<tr><td align="center"><input type="radio" name="buttons1" onclick="leapTo('http://sir.co.kr')">그누 1</td></tr>
<tr><td align="center"><input type="radio" name="buttons1" onclick="leapTo('http://esindi.com')">이신디</td></tr>
<tr><td align="center"><input type="radio" name="buttons1" onclick="leapTo('test3.html')">메뉴 3</td></tr>
<tr><td align="center"><input type="radio" name="buttons1" onclick="leapTo('test4.html')">메뉴 4</td></tr>
</form>
</table>

<!-------------- 여기까지 ---------------->

</body>
</html><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]</div>
추천
0
  • 복사

댓글 0개

© SIRSOFT
현재 페이지 제일 처음으로