| Back to top... |
| Back to top... |
| You should start this project by thinking about a design how you want to use the ExploreMenu. Like mentioned earlier in this text it is recommended to use it in a own frame. Set up your frames and the content files first. The easiest way to do this is using the type of frames shown in figure 1. If you use this style place the applet into frame 1 and the content into frame 2. Ofcourse you can do this like you want, but you should try not to reload the applet after a click on a link. After you have set up your frames, you can go on to configure the ExploreMenu. You do this by first copying the whole applet-block from the demo-html and pasting it into your navigation html-file. |
![]() figure 1 |
|
Now you set up the other available params like (this step is optional): lineStyle - sets the style of the lines between the icons (0:dotted; 1:single-pixel; 2:three-pixel-bold) iconWidth - display width of the icons iconHeight - display height of the icons fontName - sets the font that shall be used fontSize - font size... you know fontStyle - font style (normal, bold, italic or bolditalic) fontXoffset - this is the horizontal distance between the icon and the text fontYoffset - this is the vertical distance between the top of the icon and the text baseline (see figure 2) sliderSize - the size of the sliders (will always multiplied by 4 to gain the final size - best between 3 and 5) linkTarget - the standard target of a link - can be also changed for every line in the tree information hiliteMode - how to highlite the mouseovers (0: no highlight; 1: highlight text only; 2: highlight box; 3: both, text and box) statusText - the text in the statusline of the browser when the mouse is over the applet |
![]() figure 2 |
******************************************
* ExploreMenu (C) by Stefan Mateescu
* Example...
******************************************
[0] text="This is da headline" icon="0" color="#ffffff"
[1] text="Bla Bla!"
[1] text="More Bla." icon="7"
[1] text="EVEN MORE BLA!"
*** test folder
[1] text="This is a folder!" type="folder" icon="3"
[2] text="this item is in a folder"
*** author folder
[1] text="Author's Information" type="openfolder" icon="3"
[2] text="Visit author's homepage" color="#aaaadd" link="http://storm.headlight.de" linkTarget="_blank"
[2] text="Email to the author" color="#aaaadd" link="mailto:mateescu@headlight.de"
*** avail folder
[1] text="Available graphic items" type="openfolder"
[2] text="Folders" type="folder"
[3] text="Folder #1" icon="1" type="folder"
[3] text="Folder #2" icon="2" type="folder"
[2] text="Icons" type="folder"
[3] text="Icon #00" icon="0"
[3] text="Icon #01" icon="1"
[3] text="Icon #02" icon="2"
The figures 3 and 4 show the results of the upper tree information. Figure 3 shows the look directly after the start of the applet, and
figure 4 shows it with all folders opened. Some introductionary words about the tree information:
|
![]() figure 3 |
![]() figure 4 |
| Back to top... |
| Back to top... |
|
The two required graphics files are the folders' and icons' files. Every item is taken from these files and displayed in the applet area.
See figure 5 to see how to count in them... Don't use icons that are not in these files (here icons higher than 26). If you want to make your own graphics files consider this:
|
|
| Back to top... |
| Back to top... |
| Back to top... |