ApPHP TreeMenu Pro - Live Demo
CSS Style:
XP
Default
Vista
Paneled
Submission Type:
Ajax
Get
Post
Animation Effects:
None
Slow
Normal
Fast
Direction:
Left-to-right
Right-to-left
Nodes
Expand all
|
Collapse all
Pictures
Europe
Eiffel Tower
Big Ben
Italy
Rome
Pisa
America
Statue of Liberty
HTML
Capitals
Anthems
Text
PHP
Code
New Window
Content
This code was inserted without using files
Code
define
(
'TREEMENU_DIR'
,
'../'
)
;
require_once
(
TREEMENU_DIR
.
'nodes.class.php'
)
;
$treeMenu
=
new
TreeMenu
(
)
;
$treeMenu
->
SetHttpVars
(
array
(
'submission'
,
'style'
,
'direction'
,
'animation'
)
)
;
$pictures
=
$treeMenu
->
AddNode
(
'pictures'
)
;
$europe
=
$pictures
->
AddNode
(
'Europe'
)
;
$france
=
$europe
->
AddNode
(
'Eiffel Tower'
,
'content/paris.jpg'
,
'content/france.gif'
)
;
$britain
=
$europe
->
AddNode
(
'Big Ben'
,
'content/london.jpg'
,
'content/britain.gif'
)
;
$italy
=
$europe
->
AddNode
(
'Italy'
,
''
,
'content/italy.jpg'
)
;
$italy
->
AddNode
(
'Rome'
,
'content/rome.jpg'
)
;
$italy
->
AddNode
(
'Pisa'
,
'content/pisa.jpg'
)
;
$america
=
$pictures
->
AddNode
(
'America'
)
;
$liberty
=
$america
->
AddNode
(
'Statue of Liberty'
,
'content/newyork.jpg'
,
'content/newyorkflag.jpg'
)
;
$html
=
$treeMenu
->
AddNode
(
'HTML'
)
;
$html
->
AddNode
(
'Capitals'
,
'content/capitals.htm'
)
;
$html
->
AddNode
(
'Anthems'
,
'content/anthems.htm'
)
;
$treeMenu
->
AddNode
(
'Text'
,
'content/text.txt'
)
;
$treeMenu
->
AddNode
(
'PHP'
,
'content/script.php?country=Italy'
)
;
$code
=
$treeMenu
->
AddNode
(
'Code'
)
;
$code
->
SetInnerHTML
(
'<i>This code was inserted without using files</i>'
)
;
$newWindow
=
$treeMenu
->
AddNode
(
'New window'
,
'content/london.jpg'
)
;
$newWindow
->
OpenNewWindow
(
true
)
;
$nodes
->
Display
(
)
;
Open
Back To Site
Code Example
☒