¸Þ´ºÀÇ Á¾·ù°¡ ¸¹°Å³ª ȨÆäÀÌÁö Àüü ¸Þ´º°¡ ¸¹À» °æ¿ì »ç¿ëÀÚ¿¡°Ô °£ÆíÇÏ°Ô ¸Þ´º¸¦ Á¦°øÇϱâ À§ÇØ »ç¿ëµÈ´Ù. Ç®´Ù¿î¸Þ´º¶ó´Â
¸ÚÁø ³ÑÀ» ÀÌ¿ëÇϸé ÀÛÀº °ø°£¿¡ ¸¹Àº ¾çÀÇ ¸Þ´º¸¦ ³ª¿ ÇÒ ¼ö ÀÖ°Ô µÈ´Ù.
HTML Example |
<HTML> <HEAD><title>Demo06.html</title>
<script language="javascript">
function buildArray() { var a = buildArray.arguments;
for (i=0; i this[i] = a[i]; } this.length = a.length;
} // Ç®´Ù¿î¸Þ´ºÀÇ °¢°¢ÀÇ ¿¬°á¹®¼¸¦
Â÷·Ê·Î ÁöÁ¤ÇÑ´Ù
var list1 = new buildArray("", "script04.html",
"script05.html");
function go(which, num, win) { n = which.selectedIndex;
if (n != 0) { var
url = eval("list" + num + "[n]") if
(win) { openWindow(url);
} else { location.href
= url; } }
} </script> </HEAD> <BODY>
<FORM NAME="list"> <select
name="menu1" onChange="go(this, 1, false)">
<option>¢Ñ »¡¸®°¡±â <option>¢º
À̹ÌÁö°¡ ¹Ù²î´Â ¸Þ´º(2) <option>¢º
À̹ÌÁö°¡ ¹Ù²î´Â ¸Þ´º(3) </select>
</BODY> </HTML> |
|
|
|