ÂøÇÑ °Íµé > ÂøÇÑ ½ºÅ©¸³Æ® > Æû °ü·Ã

¼¿·ºÆ®¹Ú½º¿¡ Ãß°¡, »èÁ¦, À§·Î ¾Æ·¡·Î ¼±ÅÃÇ׸ñ À̵¿ÇÏ´Â ¿¹Á¦

¡Ø ³»¿ë ¾÷µ¥ÀÌÆ®¿Í ȨÆäÀÌÁö °ü¸® ´Ù½Ã ½ÃÀÛÇÏ°Ú½À´Ï´Ù. ^^;
¼¿·ºÆ® ¹Ú½º¿¡ Ç׸ñÀ» Ãß°¡, »èÁ¦, À̵¿½ÃÄѺ¸´Â ¿¹Á¦ÀÔ´Ï´Ù. ^^*
¿¹Á¦
Ãß°¡ ¹öÆ°À» ´©¸£¼¼¿ä~
1 2




¼Ò½º
<script type="text/javascript">
<!--
	// ¼±ÅÃÇÑ Ç׸ñ »èÁ¦
	function removeItem(str){
		var frm = document.form1;
		var o = frm.elements[str];
		var idx = o.selectedIndex;
		if(idx == -1) return;
		o.options.remove(idx);
		o.selectedIndex = idx - 1;
		if(idx - 1 < 0)o.selectedIndex = 0;
	}

	// ¼±ÅÃÇÑ Ç׸ñ ¸ðµÎ »èÁ¦
	function removeAllItem(str){
		var frm = document.form1;
		var o = frm.elements[str];
		if(o.length == 0) return;

		var loop = o.length;
		for (var i=0 ; i < loop ; i++){
			o.options.remove(0);
		}
	}

	// Ç׸ñ Ãß°¡
	function addItem(str){
		var frm = document.form1;
		var o = frm.gayo;
		frm.elements[str].options.add(new Option(o.options[o.selectedIndex].text, o.options[o.selectedIndex].value));
	}

	// ¼±ÅÃÇÑ°Í ¿Ã¸®±â
	function moveUp(str){
		var frm = document.form1;
		var o = frm.elements[str];
		var idx = o.selectedIndex;

		if(idx == -1) return;
		if(idx > 0){
			var text = o.options[idx].text;
			var value = o.options[idx].value;

			o.options[idx].text = o.options[idx - 1].text
			o.options[idx].value = o.options[idx - 1].value

			o.options[idx - 1].text = text;
			o.options[idx - 1].value = value;

			o.selectedIndex = idx - 1;
		}
	}

	// ¼±ÅÃÇÑ°Í ³»¸®±â
	function moveDown(str){
		var frm = document.form1;
		var o = frm.elements[str];
		var idx = o.selectedIndex;

		if(idx == -1) return;
		if(idx < o.length-1){
			var text = o.options[idx].text;
			var value = o.options[idx].value;

			o.options[idx].text = o.options[idx + 1].text
			o.options[idx].value = o.options[idx + 1].value

			o.options[idx + 1].text = text;
			o.options[idx + 1].value = value;

			o.selectedIndex = idx + 1;
		}
	}
//-->
</script>

<form name="form1" method="get" action="">
<table border="0" style="font-size:9pt;" cellpadding="3" cellspacing="0" align="center">
	<tr>
		<td align="center">
			<select name="gayo" size="1">
				<option value="1">±× »ç¶÷ ãÀ¸·¯ °£´Ù</option>
				<option value="2">ºÎ²ôºÎ²ô</option>
				<option value="3">À¯Äè»óÄèÅëÄè</option>
				<option value="4">MY WAY</option>
				<option value="5">È­ÀÌÆÃ(FIGHTING)</option>
				<option value="6">ÀåÀ±Á¤ Æ®À§½ºÆ®</option>
				<option value="6">ÃѸÂÀº °Íó·³</option>
			</select>
			<input type="button" value="1¿¡ Ãß°¡" onclick="addItem('select1')"> <input type="button" value="2¿¡ Ãß°¡" onclick="addItem('select2')">
		</td>
	</tr>

	<tr>
		<td align="center">Ãß°¡ ¹öÆ°À» ´©¸£¼¼¿ä~</td>
	</tr>

	<tr>
		<td align="center">

		<table border="0" cellpadding="5" cellspacing="1" style="font-size:9pt;" bgcolor="#999999">
			<tr>
				<td colspan="2" align="center" bgcolor="#E2E2E2"><b>1</b></td>
				<td colspan="2" align="center" bgcolor="#E2E2E2"><b>2</b></td>
			</tr>
			<tr>
				<td align="center" bgcolor="white"><select name="select1" size="10" style="width:200px;"></select></td>
				<td align="center" bgcolor="white">
					<input type="button" value=" ¡ã " onclick="moveUp('select1')"><br>
					<input type="button" value=" ¡å " onclick="moveDown('select1')"><br>
					<input type="button" value="»èÁ¦" onclick="removeItem('select1')">
				</td>
				<td align="center" bgcolor="white"><select name="select2" size="10" style="width:200px;"></select></td>
				<td align="center" bgcolor="white">
					<input type="button" value=" ¡ã " onclick="moveUp('select2')"><br>
					<input type="button" value=" ¡å " onclick="moveDown('select2')"><br>
					<input type="button" value="»èÁ¦" onclick="removeItem('select2')">
				</td>
			</tr>
			<tr>
				<td align="center" colspan="4" bgcolor="white">					
					<input type="button" value="¸ðµÎ»èÁ¦" onclick="removeAllItem('select1');removeAllItem('select2')"></td>
			</tr>
		</table>

		</td>
	</tr>
</table>
</form>
°ü·Ã±Û ¸ðÀ½ (¼¿·ºÆ® ¹Ú½º °ü·Ã ¿¹Á¦)
¢Ñ ´ÞÆØÀÌȨ2 µî·ÏÀÏ : 2009-08-31