CatalogueSirius Logo  

 

Placing all the Node data into a File

This example gives almost the same result as the previous one, but here we load all the node data from the text file (nodes.txt) rather than the html param tags. We have extended the node data to now add url functionality to each node. Each node has been set to open the url in a new browser window.

And here is the html code (new code marked in blue),


<applet code="TreeApplet" width="250" height="300" archive="Treemenu.jar">

<!-- Tree Properties -->
<param name="nodeOffset" value="25">

<!-- Images -->
<param name="image1" value="closed|./IconImages/closedfolder.gif">
<param name="image2" value="open|./IconImages/openfolder.gif">
<param name="image3" value="document|./IconImages/document.gif">
<param name="image4" value="point|./IconImages/point.gif">

<!-- Nodes -->
<param name="Nodedata" value="nodes.txt">

</applet>

To view the nodes.txt file click here.


Please Note: Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.


[Copyright © 1997 - 2001 Sirius Computer Consultants Limited - All rights reserved. ]