메뉴의 종류가 많거나 홈페이지 전체 메뉴가 많을 경우 사용자에게 간편하게 메뉴를 제공하기 위해 사용된다. 풀다운메뉴라는
멋진 넘을 이용하면 작은 공간에 많은 양의 메뉴를 나열 할 수 있게 된다.
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> |
|
|
|