PHP ajax Tree树形菜单.zip

  • D5_238109
    了解作者
  • 14.4KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-11 08:26
    上传日期
PHP ajax Tree树形菜单,在PHP中快速实现一个目录列表类型的树形菜单,十分简洁漂亮,在PHP中应用广泛,本菜单基于JavaScript和XML技术实现。
php-tree-static.zip
  • php-tree-static
  • images
  • gradient.gif
    214B
  • dhtmlgoodies_folder.gif
    572B
  • dhtmlgoodies_sheet.gif
    75B
  • dhtmlgoodies_minus.gif
    197B
  • dhtmlgoodies_plus.gif
    200B
  • js
  • context-menu.js
    4.1KB
  • folder-tree-static.js
    12.1KB
  • ajax.js
    5KB
  • css
  • context-menu.css
    1.5KB
  • folder-tree-static.css
    566B
  • writeNodes.php
    2.7KB
  • folder-tree-static.html
    3.5KB
内容介绍
<? if(isset($_GET['parentId'])){ switch($_GET['parentId']){ case "1": ?> <li><a href="#" rel='nofollow' onclick='return false;'>Denmark</a> <ul> <li parentId="12"><a href="#" rel='nofollow' onclick='return false;'>Loading</a></li> </ul> </li> <li><a href="#" rel='nofollow' onclick='return false;'>Norway</a> <ul> <li parentId="11"><a href="#" rel='nofollow' onclick='return false;'>Loading</a></li> </ul> </li> <li><a href="#" rel='nofollow' onclick='return false;'>Sweden</a></li> <li><a href="#" rel='nofollow' onclick='return false;'>Germany</a></li> <li><a href="#" rel='nofollow' onclick='return false;'>France</a></li> <li><a href="#" rel='nofollow' onclick='return false;'>Spain</a> <ul> <li parentId="14"><a href="#" rel='nofollow' onclick='return false;'>Loading</a></li> </ul> </li> <li><a href="#" rel='nofollow' onclick='return false;'>Italy</a> <ul> <li parentId="13"><a href="#" rel='nofollow' onclick='return false;'>Loading</a></li> </ul> </li> <? break; case "11": ?> <li class="dhtmlgoodies_sheet.gif"><a href="#" rel='nofollow' onclick='return false;'>Bergen</a></li> <li class="dhtmlgoodies_sheet.gif"><a href="#" rel='nofollow' onclick='return false;'>Stavanger</a></li> <li class="dhtmlgoodies_sheet.gif"><a href="#" rel='nofollow' onclick='return false;'>Trondheim</a></li> <li class="dhtmlgoodies_sheet.gif"><a href="#" rel='nofollow' onclick='return false;'>Oslo</a></li> <? break; case "12": ?> <li class="dhtmlgoodies_sheet.gif"><a href="#" rel='nofollow' onclick='return false;'>Copenhagen</a></li> <li class="dhtmlgoodies_sheet.gif"><a href="#" rel='nofollow' onclick='return false;'>Aalborg</a></li> <? break; case "13": ?> <li class="dhtmlgoodies_sheet.gif"><a href="#" rel='nofollow' onclick='return false;'>Rome</a></li> <li class="dhtmlgoodies_sheet.gif"><a href="#" rel='nofollow' onclick='return false;'>Venice</a></li> <li class="dhtmlgoodies_sheet.gif"><a href="#" rel='nofollow' onclick='return false;'>Palermo</a></li> <li class="dhtmlgoodies_sheet.gif"><a href="#" rel='nofollow' onclick='return false;'>Napoli</a></li> <? break; case "14": ?> <li class="dhtmlgoodies_sheet.gif"><a href="#" rel='nofollow' onclick='return false;'>Madrid</a></li> <li class="dhtmlgoodies_sheet.gif"><a href="#" rel='nofollow' onclick='return false;'>Barcelona</a></li> <? break; case "2": ?> <li><a href="#" rel='nofollow' onclick='return false;'>China</a></li> <li><a href="#" rel='nofollow' onclick='return false;'>Japan</a></li> <? break; case "3": ?> <li><a href="#" rel='nofollow' onclick='return false;'>Nigeria</a></li> <li><a href="#" rel='nofollow' onclick='return false;'>South Africa</a></li> <li><a href="#" rel='nofollow' onclick='return false;'>Senegal</a></li> <? break; case "4": ?> <li><a href="#" rel='nofollow' onclick='return false;'>Canada</a> <ul> <li parentId="41"><a href="#" rel='nofollow' onclick='return false;'>Loading</a></li> </ul> </li> <li><a href="#" rel='nofollow' onclick='return false;'>United States</a> <ul> <li parentId="42"><a href="#" rel='nofollow' onclick='return false;'>Loading</a></li> </ul> </li> <li><a href="#" rel='nofollow' onclick='return false;'>Mexico</a></li> <li><a href="#" rel='nofollow' onclick='return false;'>Argentina</a></li> <li><a href="#" rel='nofollow' onclick='return false;'>Chile</a></li> <li><a href="#" rel='nofollow' onclick='return false;'>Brazil</a></li> <li><a href="#" rel='nofollow' onclick='return false;'>Bolivia</a></li> <li><a href="#" rel='nofollow' onclick='return false;'>Peru</a></li> <? break; case "42": ?> <li class="dhtmlgoodies_sheet.gif"><a href="#" rel='nofollow' onclick='return false;'>Washington</a></li> <li class="dhtmlgoodies_sheet.gif"><a href="#" rel='nofollow' onclick='return false;'>Chicago</a></li> <li class="dhtmlgoodies_sheet.gif"><a href="#" rel='nofollow' onclick='return false;'>Boston</a></li> <? break; case "41": ?> <li class="dhtmlgoodies_sheet.gif"><a href="#" rel='nofollow' onclick='return false;'>Toronto</a></li> <? break; } } ?>
评论
    相关推荐