實(shí)驗(yàn)8:
怎么都講些不實(shí)用的東西啊?別急.下面就開(kāi)始講實(shí)用的. 這個(gè)實(shí)驗(yàn)比較有實(shí)用價(jià)值.就如藍(lán)色網(wǎng)站的側(cè)邊菜單來(lái)說(shuō). 如圖:
放置的內(nèi)容是有限的.這個(gè)實(shí)驗(yàn)就可以用來(lái)擴(kuò)展側(cè)邊菜單. 利用Accordion組件做容納多內(nèi)容的網(wǎng)站側(cè)邊菜單. 效果圖:
下面開(kāi)始:
數(shù)據(jù)庫(kù):
打開(kāi)Data.mdb數(shù)據(jù)庫(kù).新建二個(gè)表. 表名分別為: -------------------------------------------------- column columnData --------------------------------------------------
column表中: 輸入三個(gè)字段:分別為: -------------------------------------------------- columnID 自動(dòng)編號(hào) columnName 文本 columnIndex 數(shù)字 -------------------------------------------------- 在 columnID 字段點(diǎn)右鍵-->主鍵,保存. 打開(kāi)column表,分別在columnName,columnIndex字段輸入五條數(shù)據(jù),數(shù)據(jù)分別為: -------------------------------------------------- columnName columnIndex 專(zhuān)題欄目-01 0 專(zhuān)題欄目-02 1 專(zhuān)題欄目-03 2 專(zhuān)題欄目-04 3 專(zhuān)題欄目-05 4
-------------------------------------------------- 保存.
columnData表中: 輸入四個(gè)字段,分別為: -------------------------------------------------- cdID 自動(dòng)編號(hào) cdName 文本 cdURL 文本 columnIndex 數(shù)字 -------------------------------------------------- 在 cdID 字段點(diǎn)右鍵-->主鍵,保存. 打開(kāi)columnData表,分別在cdName,cdURL,columnIndex字段輸入下面的數(shù)據(jù): -------------------------------------------------- cdName cdURL columnIndex ChooseFlash-01.1 http://www.happiness01.com 0 ChooseFlash-01.2 http://www.happiness02.com 0 ChooseFlash-01.3 http://www.happiness03.com 0 ChooseFlash-01.4 http://www.happiness04.com 0 ChooseFlash-01.5 http://www.happiness05.com 0
ChooseFlash-02.1 http://www.happiness01.com 1 ChooseFlash-02.2 http://www.happiness02.com 1 ChooseFlash-02.3 http://www.happiness03.com 1 ChooseFlash-02.4 http://www.happiness04.com 1 ChooseFlash-02.5 http://www.happiness05.com 1
ChooseFlash-03.1 http://www.happiness01.com 2 ChooseFlash-03.2 http://www.happiness02.com 2 ChooseFlash-03.3 http://www.happiness03.com 2 ChooseFlash-03.4 http://www.happiness04.com 2 ChooseFlash-03.5 http://www.happiness05.com 2
ChooseFlash-04.1 http://www.happiness01.com 3 ChooseFlash-04.2 http://www.happiness02.com 3 ChooseFlash-04.3 http://www.happiness03.com 3 ChooseFlash-04.4 http://www.happiness04.com 3 ChooseFlash-04.5 http://www.happiness05.com 3
ChooseFlash-05.1 http://www.happiness01.com 4 ChooseFlash-05.2 http://www.happiness02.com 4 ChooseFlash-05.3 http://www.happiness03.com 4 ChooseFlash-05.4 http://www.happiness04.com 4 ChooseFlash-05.5 http://www.happiness05.com 4 ChooseFlash-05.6 http://www.happiness06.com 4 ChooseFlash-05.7 http://www.happiness07.com 4
-------------------------------------------------- 保存.關(guān)閉數(shù)據(jù)庫(kù).
出處:藍(lán)色理想
責(zé)任編輯:moby
上一頁(yè) Flash處理外部XML文檔數(shù)據(jù) [5] 下一頁(yè) Flash處理外部XML文檔數(shù)據(jù) [8]
◎進(jìn)入論壇Flash專(zhuān)欄版塊參加討論
|