Example 6
Placing all the Menu and Item data in text files.

As you can see, when the number submenu's and item's begins to grow the html begins to look a little cumbersome. For this reason we have built in the ability for the menu bar to retrieve the menu and item data from text files. In this way the menu and item data is far easier to manage and the html will look cleaner. In this example we place all the menu data in a file called menudata.txt and all the item data in a file called itemdata.txt.

And here is the html code,

<applet code="PopupMenuApplet" archive="AdvFloatMenu.jar" width="0" height="0" mayscript>

<param NAME="cabbase" VALUE="AdvFloatMenu.cab">
<param name="Position" value="50,200">

<param name="TitleBar" value="true"> <!-- title bar on/off -->
<param name="Title" value="Example"> <!-- title -->
<param name="TitleTextColor" value="255,255,255"> <!-- text color -->
<param name="TitleBackgroundColor" value="0,0,150"> <!-- background color -->
<param name="TitleFont" value="Helvetica,B,12"> <!-- text font -->

<param name="Itemdata" value="itemdata.txt">
<param name="Menudata" value="menudata.txt">

<!-- Images -->
<param name="image1" value="home|./IconImages/home.gif">
<param name="image2" value="home2|./IconImages/home2.gif">
<param name="image3" value="online|./IconImages/online.gif">
<param name="image4" value="online2|./IconImages/online2.gif">
<param name="image5" value="select|./IconImages/select.gif">
<param name="image6" value="select2|./IconImages/select2.gif">
<param name="image7" value="look|./IconImages/look.gif">
<param name="image8" value="look2|./IconImages/look2.gif">
<param name="image9" value="doc|./IconImages/doc.gif">
<param name="image10" value="doc2|./IconImages/doc2.gif">
<param name="image11" value="world|./IconImages/world.gif">
<param name="image12" value="world2|./IconImages/world2.gif">

</applet>

To view the menudata.txt file click here.

To view the itemdata.txt file click here.