} function myMouseout (branch) { branch.txt.style.color = 'black'; } function funcDrop (move, here, response, finished) { return false; } function testclick(branch) { } <?php // Display the function which is called at load // You can print only the JSON structure with // the function $tree->getJSON(); echo $tree->display(); ?> </script> </head> <body> <h3>CASE 2 : create a loader TafelTree from an object</h3> <div id="divTree"></div> <h3>CASE 3 : get only the JSON from an object</h3> <?php echo $tree->getJSON(); ?> </body> </html>