JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Servlet/JSP 討論區  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友   
reply to postflat modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 Re:[問題]即時多層下拉選單 [Re:ㄚ孝]
yulie





發文: 2
積分: 0
於 2006-06-06 12:47 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
<%@ page contentType="text/html; charset=utf-8" %>
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>動態下拉式選單 (二階層):</Title></Head>

表單名稱為 myForm
<FORM Name="myForm">
  <SELECT Name="color" OnChange="Buildkey(this.selectedIndex);">
    <OPTION Value="應用數學系">應用數學系
    <OPTION Value="物理學系">物理學系
    <OPTION Value="心理學系">心理學系
    <OPTION Value="化學系">化學系
    <OPTION Value="生物科技學系">生物科技學系
  </Select>
  <SELECT Name="fruit">
    <option>請選擇科系:</option>
  </Select>

</Form>
</Body>
</Html>

<SCRIPT Language="JavaScript">
<!--
key=new ArrayDevil;
key[0]=new Array(10);
key[1]=new Array(10);
key[2]=new Array(9);
key[3]=new Array(9);
key[4]=new Array(3);
key[0][0]="張志豪 ";
key[0][1]="王承斌 ";
key[0][2]="呂淑鈴 ";
key[0][3]="陳建宏 ";
key[0][4]="周秋芬 ";
key[0][5]="林余昭 ";
key[0][6]="張德新 ";
key[0][7]="許大偉 ";
key[0][8]="謝俊男 ";
key[0][9]="楊鎮槐 ";
key[1][0]="陳秋豪 ";
key[1][1]="許經夌 ";
key[1][2]="朱祐諒 ";
key[1][3]="湯秀靜 ";
key[1][4]="張仲宏 ";
key[1][5]="李如玉 ";
key[1][6]="陳心誼 ";
key[1][7]="陳金枝 ";
key[1][8]="李魏堯 ";
key[1][9]="林澤義 ";
key[2][0]="林書� ";
key[2][1]="楊錫林 ";
key[2][2]="黃君瑜 ";
key[2][3]="洪福建 ";
key[2][4]="王建忠 ";
key[2][5]="鍾帛煻 ";
key[2][6]="盧小蓉 ";
key[2][7]="詹世宏 ";
key[2][8]="梁培勇 ";
key[3][0]="歐陽梅 ";
key[3][1]="李佩芸 ";
key[3][2]="李玉霞 ";
key[3][3]="李世琛 ";
key[3][4]="山查比杜 ";
key[3][5]="李建逸 ";
key[3][6]="洪偉鈞 ";
key[3][7]="蔡宗燕 ";
key[3][8]="葉華光 ";
key[4][0]="林于鈴 ";
key[4][1]="陳瀅如 ";
key[4][2]="林淑容 ";

function Buildkey(num)
{
document.myForm.fruit.selectedIndex="0;
for(ctr=0;ctr<key[num].length;ctr++){
document.myForm.fruit.options[ctr]=new Option(key[num][ctr],key[num][ctr]);
}
document.myForm.fruit.length=key[num].length;
document.writeln(key[num].length);
}


//-->
</Script>

為什麼第二層總是跑不出來


reply to postreply to post
話題樹型展開
人氣 標題 作者 字數 發文時間
81908 [精華] [問題]即時多層下拉選單 ㄚ孝 384 2003-06-07 09:05
79009 Re:[問題]即時多層下拉選單 browser 1054 2003-06-07 18:19
75947 Re:[問題]即時多層下拉選單 x3711699 138 2004-04-08 20:41
75753 Re:[問題]即時多層下拉選單 alanting 710 2004-04-11 01:41
78992 Re:[問題]即時多層下拉選單 AdaHsu 3345 2004-04-19 12:23
76864 Re:[問題]即時多層下拉選單 tsechun 95 2004-04-21 02:01
74029 Re:[問題]即時多層下拉選單 andowson 474 2004-08-01 11:07
73751 Re:[問題]即時多層下拉選單 yingssu 663 2004-08-01 19:48
72816 Re:[問題]即時多層下拉選單 ting626 38 2004-08-25 16:57
72887 Re:[問題]即時多層下拉選單 i22616899 2298 2004-09-04 17:55
72073 Re:[問題]即時多層下拉選單 GuanChih 175 2004-09-05 18:51
72815 Re:[問題]即時多層下拉選單 jonz 873 2004-09-12 10:27
66065 Re:[問題]即時多層下拉選單 pulse 1193 2005-04-18 23:22
69864 Re:[問題]即時多層下拉選單 joshua 1019 2004-11-17 16:02
70197 Re:[問題]即時多層下拉選單 joshua 2357 2004-11-17 17:27
76448 Re:[問題]即時多層下拉選單 ㄚ孝 61 2003-06-09 08:34
76684 Re:[問題]即時多層下拉選單 browser 135 2003-06-09 09:23
68913 Re:[問題]即時多層下拉選單 Madagascar 141 2004-12-04 02:06
68710 Re:[問題]即時多層下拉選單 yannru 360 2004-12-07 16:19
68567 Re:[問題]即時多層下拉選單 Madagascar 465 2004-12-07 21:20
68570 Re:[問題]即時多層下拉選單 small3 388 2004-12-13 09:52
68949 Re:[問題]即時多層下拉選單 EPHT 3599 2004-12-18 09:45
56339 Re:[問題]即時多層下拉選單 yulie 2015 2006-06-06 12:47
56060 Re:[問題]即時多層下拉選單 yulie 102 2006-06-06 13:21
56314 Re:[問題]即時多層下拉選單 estrelas 1620 2006-06-06 18:51
47117 Re:[問題]即時多層下拉選單 minichitina 1875 2007-05-05 16:25
47014 Re:[問題]即時多層下拉選單 eidson72 4781 2007-05-16 11:48
21902 Re:[問題]即時多層下拉選單 catte 1960 2011-06-27 14:44
21789 Re:[問題]即時多層下拉選單 bernardvai 54 2011-06-27 16:56
46582 Re:[問題]即時多層下拉選單 alvin0224 309 2007-05-16 14:54
46668 Re:[問題]即時多層下拉選單 eidson72 21 2007-05-16 15:41
76268 Re:[問題]即時多層下拉選單 ㄚ孝 75 2003-06-09 14:05
76227 Re:[問題]即時多層下拉選單 jackyliu 201 2003-06-22 02:06
46120 Re:[問題]即時多層下拉選單 minichitina 188 2007-05-31 08:33
45987 Re:[問題]即時多層下拉選單 minichitina 2335 2007-06-04 08:04
46448 Re:[問題]即時多層下拉選單 minichitina 2718 2007-06-07 08:00
21916 Re:[問題]即時多層下拉選單 catte 2014 2011-06-28 03:14
21754 Re:[問題]即時多層下拉選單 bernardvai 1202 2011-06-28 09:54
21870 Re:[問題]即時多層下拉選單 catte 2970 2011-06-28 11:36
21727 Re:[問題]即時多層下拉選單 bernardvai 545 2011-06-28 14:21
21819 Re:[問題]即時多層下拉選單 catte 146 2011-06-28 17:54
21749 Re:[問題]即時多層下拉選單 bernardvai 2904 2011-06-29 09:58
21697 Re:[問題]即時多層下拉選單 catte 43 2011-06-29 21:58
21580 Re:[問題]即時多層下拉選單 bernardvai 219 2011-06-30 14:40
21397 Re:[問題]即時多層下拉選單 catte 269 2011-07-13 10:41
21470 Re:[問題]即時多層下拉選單 bernardvai 660 2011-07-13 11:34
20906 Re:[問題]即時多層下拉選單 catte 4035 2011-08-15 09:35
21137 Re:[問題]即時多層下拉選單 jk47 288 2011-08-15 11:19
76202 Re:[問題]即時多層下拉選單 mousetail 89 2003-06-22 13:06
77850 Re:[問題]即時多層下拉選單 alanting 1777 2003-06-22 23:21
76368 Re:[問題]即時多層下拉選單 alanting 87 2003-06-22 23:24
22020 Re:[問題]即時多層下拉選單 catte 54 2011-06-27 04:33
75779 Re:[問題]即時多層下拉選單 evenlin 132 2003-08-02 00:55
77936 Re:[問題]即時多層下拉選單 anthonycs 301 2003-08-02 15:43
75417 Re:[問題]即時多層下拉選單 ajax0953 232 2004-03-31 15:05
75187 Re:[問題]即時多層下拉選單 shyan68 261 2004-04-07 18:11
73618 Re:[問題]即時多層下拉選單 yafeng 122 2004-07-29 10:53
69044 Re:[問題]即時多層下拉選單 javaer 216 2004-12-20 00:40
» JWorld@TW »  Servlet/JSP 討論區

reply to postflat modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8