tree.js

来自「实现类似资源浏览器的树形目录! 作了一些功能添加」· JavaScript 代码 · 共 26 行

JS
26
字号
  foldersTree = gFld("<span style='font-size:11pt'>威馆")
  aux1 = insFld(foldersTree, gFld("<span style='font-size:9pt'>本站内容"))
    insDoc(aux1, gLnk(0, "<span style='font-size:9pt;color:#336c6c'>栏目1", "1.htm"))
    insDoc(aux1, gLnk(0, "<span style='font-size:9pt;color:#336c6c'>栏目2", "2.htm"))
    insDoc(aux1, gLnk(0, "<span style='font-size:9pt;color:#336c6c'>栏目3", "3.htm"))
    insDoc(aux1, gLnk(0, "<span style='font-size:9pt;color:#336c6c'>栏目4", "4.htm"))
    insDoc(aux1, gLnk(0, "<span style='font-size:9pt;color:#336c6c'>栏目5", "5.htm"))
    insDoc(aux1, gLnk(0, "<span style='font-size:9pt;color:#336c6c'>栏目6", "6.htm"))

   
  aux1 = insFld(foldersTree, gFld("<span style='font-size:9pt'>在线服务"))
    insDoc(aux1, gLnk(0, "<span style='font-size:9pt;color:#336c6c'>栏目7", "7.htm"))
    insDoc(aux1, gLnk(0, "<span style='font-size:9pt;color:#336c6c'>栏目8", "8.htm"))
    insDoc(aux1, gLnk(0, "<span style='font-size:9pt;color:#336c6c'>栏目9", "9.htm"))
    insDoc(aux1, gLnk(0, "<span style='font-size:9pt;color:#336c6c'>栏目10", "10.htm"))
   
  aux1 = insFld(foldersTree, gFld("<span style='font-size:9pt'>个人主页"))

    insDoc(aux1, gLnk(0, "<span style='font-size:9pt;color:#336c6c'>栏目11", "11.htm"))
    insDoc(aux1, gLnk(0, "<span style='font-size:9pt;color:#336c6c'>栏目12", "12.htm"))
    insDoc(aux1, gLnk(0, "<span style='font-size:9pt;color:#336c6c'>栏目13", "13.htm"))
 

  insDoc(foldersTree, gLnk(0, "<span style='font-size:9pt;color:#336c6c'>给我留言", "14.htm"))
  insDoc(foldersTree, gLnk(0, "<span style='font-size:9pt;color:#336c6c'>请你来信", "15.htm"))

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?