dhtmlxTree樹形菜單簡單試用_第1頁
dhtmlxTree樹形菜單簡單試用_第2頁
dhtmlxTree樹形菜單簡單試用_第3頁
dhtmlxTree樹形菜單簡單試用_第4頁
全文預(yù)覽已結(jié)束

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、下載后解壓 dhtmlxTree.rar 文件,得到dhtmlxTreecodebase文件夾,我試用的就是引入的codebase中的文件。建立測試目錄結(jié)構(gòu):Java代碼 1 testdhtmlxTree 文件夾 2 .index.html 文件 3 .dhtmlxTree 文件夾 4 .codebase 文件夾 index.html內(nèi)容如下:Html代碼 5 > 6 <html> 7 <head> 8 <meta http-equiv="Content-Type" content="text/html; charset=gb2

2、312" /> 9 <title>測試dhtmlxTree</title> 10 <link rel="stylesheet" type="text/css" href="dhtmlxTree/codebase/dhtmlxtree.css"> 11 <script src="dhtmlxTree/codebase/dhtmlxcommon.js"></script> 12 <script src="dhtmlxTree/c

3、odebase/dhtmlxtree.js"></script> 13 </head> 14 <body> 15 <table> 16 <tr> 17 <td valign="top"> 18 <div id="treeboxbox_tree" style="width:250; height:218;background-color:#f5f5f5;border:1px solid Silver;"></div> 19 &

4、lt;/td> 20 </tr> 21 </table> 22 <script> 23 tree=new dhtmlXTreeObject("treeboxbox_tree","100%","100%",0); 24 tree.setImagePath("dhtmlxTree/codebase/imgs/"); 25 tree.enableDragAndDrop(0); 26 tree.enableTreeLines(false); 27 tree.setImageArra

5、ys("plus","","","","plus.gif"); 28 tree.setImageArrays("minus","","","","minus.gif"); 29 /tree.setStdImages("book.gif","books_open.gif","books_close.gif"); 30 /tree.setXM

6、LAutoLoading("tree4.xml"); 31 /tree.loadXML("tree4.xml"); 32 /tree.insertNewItem(parentId,itemId,itemText,itemActionHandler,image1,image2,image3,optionStr,childs) 33 tree.insertNewItem(0,1,'區(qū)域管理','','','','','',''); 34 tree.

7、insertNewChild(1,2,'北京'); 35 tree.insertNewChild(1,3,'天津'); 36 tree.insertNewChild(1,4,'上海'); 37 tree.insertNewChild(1,5,'湖南'); 38 tree.insertNewChild(1,6,'廣西'); 39 tree.insertNewChild(4,7,'徐家匯'); 40 tree.insertNewChild(4,8,'百老會(huì)'); 41 tree.insertNewChild(4,9,'不清楚'); 42 tree.insertNewChild(4,10,'哈哈哈'); 43 tree.setOnClickHandler(test); 44 function test() 45

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論