RadarURL

조회 수 6242 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

<html>
<head>


<SCRIPT LANGUAGE="JavaScript">


 function moveOver() {
 var boxLength = document.choiceForm.choiceBox.length;
 var selectedItem = document.choiceForm.available.selectedIndex;
 var selectedText = document.choiceForm.available.options[selectedItem].text;
 var selectedValue = document.choiceForm.available.options[selectedItem].value;
 var i;
 var isNew = true;
  if (boxLength != 0) {
   for (i = 0; i < boxLength; i++) {
    thisitem = document.choiceForm.choiceBox.options[i].text;
     if (thisitem == selectedText) {
      isNew = false;
      break;
     }
    }
  }
  if (isNew) {
   newoption = new Option(selectedText, selectedValue, false, false); 
   document.choiceForm.choiceBox.options[boxLength] = newoption;
  }
  document.choiceForm.available.selectedIndex=-1;
 }


 function removeMe() {
 var boxLength = document.choiceForm.choiceBox.length;
  arrSelected = new Array();
 var count = 0;
  for (i = 0; i < boxLength; i++) {
   if (document.choiceForm.choiceBox.options[i].selected) {
    arrSelected[count] = document.choiceForm.choiceBox.options[i].value;
   }
   count++;
  }
 var x;
  for (i = 0; i < boxLength; i++) {
   for (x = 0; x < arrSelected.length; x++) {
    if (document.choiceForm.choiceBox.options[i].value == arrSelected[x]) {
     document.choiceForm.choiceBox.options[i] = null;
       }
   }
   boxLength = document.choiceForm.choiceBox.length;
     }
 }


</script>
</HEAD>
<BODY>


<center>
<form name="choiceForm">
<table border=0>
<tr>
<td valign="top" width=175>


<br>
<select name="available" style="width:150" size=10 onchange="moveOver();">
<option value=1>1
<option value=2>2
<option value=3>3
<option value=4>4
<option value=5>5
</select>
</td>
<td valign="top">


<br>
<select multiple name="choiceBox" style="width:150;" size="10">
</select>
</td>
</tr>
<tr>
<td colspan=2 height=10>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="제거" onclick="removeMe();">
</td>
</tr>
</table>
</form>
</center>

출처 : http://kin.naver.com/db/detail.php?d1id=1&dir_id=10102&eid=qRFjj/3N857kDnf/QEEU/RNP2SxZiBso&qb=c2VsZWN0IG9wdGlvbiBmb3Jt

?

공부 게시판

공부에 도움되는 글을 올려주세요.

  1. No Image notice by 처누 2003/08/18 by 처누
    Views 952963 

    [공지] 공부 게시판 입니다.

  2. 메모리 부족 현상 (allowed memory size of 134217728 bytes..)

  3. Guzzle - cURL error 60: SSL certificate problem: unable to get local issuer certificate 문제 해결

  4. XE 캐시파일 재성생후 404 Oops, Sorry. Page is not found! 나올때

  5. XE - " Fatal error: Class 'Object' not found in " / class 낫파운드 오류

  6. iOS 앱 개발을 위한 인증서 생성 및 관리

  7. PHP 파서 이해하기 (<?php의 php를 생략하고 간단히 <? 태그 와 ?> 태그를 사용하는 방법)

  8. XE 비회원 글쓰기 항목 지우기

  9. 오른쪽 마우스 금지 소스 / 드래그 금지 소스

  10. Strict standards and C5 support errors

  11. ICT노트 :: 반응형웹을 만드는 기술은?

  12. [번역] 2014년 가장 인기있는 5가지 프론트엔드 프레임워크 비교

  13. 최고의 반응형 CSS 프레임워크 18선 (2013년 7월기준)

  14. 가장 진보된 반응형 웹을 위한 프레임워크 UIkit

  15. 반응형 웹을 위한 프론트-엔드 프레임 워크 (front-end framework for developing responsive web)

  16. 한국형 반응형웹 프레임웍을 찾아서 - 왜 우리는 IE 7,8때문에 고통받아야 하는가?

  17. 한국을 위한 CSS 그리드 디자인 프레임워크

  18. 과연 반응형 웹 디자인만이 해답일까?

  19. 반응형 웹 디자인의 단점

  20. 웹디자인 신기술 트렌드 및 적용 사례

  21. 제이쿼리(jQuery) 튜토리얼(Tutorial) 모음

Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 15 Next
/ 15


즐겨찾기 (가족)

JAESOO's HOMEPAGE


장여은 홈페이지


장여희 홈페이지


장여원 홈페이지


즐겨찾기 (업무)

알리카페 홀릭

숭실대 컴퓨터 통신연구실 (서창진)

말레이시아 KL Sentral 한국인 GuestHouse


즐겨찾기 (취미)

어드민아이디

유에코 사랑회

아스가르드 좋은사람/나쁜사람

JServer.kr

제이서버 메타블로그

재수 티스토리


즐겨찾기 (강의, 커뮤니티)

재수 강의 홈페이지


한소리


VTMODE.COM


숭실대 인공지능학과


숭실대 통신연구실


베너