CatalogueSirius Logo 

 

Adding a Background Image.

This final example shows how to add a background image to the Tree applet. In this example the image size matches the size of the applet, however this does not have to be the case and for smaller images they can be positioned anywhere within the applet.

 

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">
<param name="backgroundColor" value="0|0|0">
<param name="borderWidth" value="1">
<param name="borderColor" value="175|175|175">
<param name="connectingLines" value="true">
<param name="connectingLinesColor" value="255|255|255">
<param name="connectingLinesStyle" value="2">
<param name="highTextColor" value="0|0|0">
<param name="highBgColor" value="255|255|255">
<param name="nodegap" value="5">
<param name="title" value="Jpowered">
<param name="titleFont" value="Helvetica|BI|14">
<param name="titleColor" value="255|255|255">
<param name="underlineLinks" value="true">
<param name="scrollBarBgColor" value="0|0|0">
<param name="statusBar" value="true">
<param name="statusBarFont" value="Helvetica|N|12">
<param name="statusBarBgColor" value="0|0|0">
<param name="statusBarTextColor" value="255|255|255">
<param name="statusBarHeight" value="16">
<param name="BgImage" value="./images/stars.gif">
<param name="BgImagePosition" value="0,0">


<!-- 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/point2.gif">
<!-- Nodes -->
<param name="Nodedata" value="nodestars.txt">

</applet>

 


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. ]