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 952966 

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

  2. WIndows Application의 실행 속도 측정

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

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

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

  6. [Apple] 엔터프라이즈 계정신청 (Enterprise Program)

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

  8. [MSA] MSA란 무엇인가? 개념 이해하기

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

  10. [ iOS ] 앱 스토어 개인, 회사, 엔터프라이즈 차이점

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

  12. SVN의 cleanup 에러시 해결방법

  13. [오류해결] svn cleanup failed-previous operation has not finished; run cleanup if it was interrupted

  14. TortoiseSVN 계정변경

  15. SVN passwd 설정 : 계정 (users/passwd)

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

  17. 메모리 영역 (code, data, stack, heap)

  18. [SVN] Subversion 명령들

  19. IBM JDK 1.6 에서 Spring 2.5.2를 사용할 때 GenericTypeResolver 에서 NullPointerException이 발생하는 문제

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

  21. [전자정부 표준프레임워크] 톰캣(Tomcat) 설치하기

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


즐겨찾기 (가족)

JAESOO's HOMEPAGE


장여은 홈페이지


장여희 홈페이지


장여원 홈페이지


즐겨찾기 (업무)

알리카페 홀릭

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

말레이시아 KL Sentral 한국인 GuestHouse


즐겨찾기 (취미)

어드민아이디

유에코 사랑회

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

JServer.kr

제이서버 메타블로그

재수 티스토리


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

재수 강의 홈페이지


한소리


VTMODE.COM


숭실대 인공지능학과


숭실대 통신연구실


베너