ApPHP TreeMenu Pro - Live Demo

CSS Style: Submission Type: Animation Effects: Direction:
Nodes
Expand all | Collapse all

  • imageimagePictures
    • imageimageEurope
      • imageEiffel Tower
      • imageBig Ben
      • imageimageItaly
        • Rome
        • Pisa
    • imageimageAmerica
      • imageStatue of Liberty
  • imageimageHTML
    • Capitals
    • Anthems
  • Text
  • PHP
  • Code
  • New Window

Content
Code
  1. define ('TREEMENU_DIR', '../');
  2. require_once(TREEMENU_DIR.'nodes.class.php');
  3. $treeMenu = new TreeMenu();
  4. $treeMenu->SetHttpVars(array('submission','style','direction','animation'));
  5. $pictures = $treeMenu->AddNode('pictures');
  6. $europe = $pictures->AddNode('Europe');
  7. $france = $europe->AddNode('Eiffel Tower','content/paris.jpg','content/france.gif');
  8. $britain = $europe->AddNode('Big Ben','content/london.jpg','content/britain.gif');
  9. $italy = $europe->AddNode('Italy','','content/italy.jpg');
  10. $italy->AddNode('Rome','content/rome.jpg');
  11. $italy->AddNode('Pisa','content/pisa.jpg');
  12. $america = $pictures->AddNode('America');
  13. $liberty = $america->AddNode('Statue of Liberty','content/newyork.jpg','content/newyorkflag.jpg');
  14. $html = $treeMenu->AddNode('HTML');
  15. $html->AddNode('Capitals','content/capitals.htm');
  16. $html->AddNode('Anthems','content/anthems.htm');
  17. $treeMenu->AddNode('Text','content/text.txt');
  18. $treeMenu->AddNode('PHP','content/script.php?country=Italy');
  19. $code = $treeMenu->AddNode('Code');
  20. $code->SetInnerHTML('<i>This code was inserted without using files</i>');
  21. $newWindow = $treeMenu->AddNode('New window','content/london.jpg');
  22. $newWindow->OpenNewWindow(true);
  23. $nodes->Display();