Example 1
Basic Menu Bar with three Buttons, just text.

In this first example we have kept the supplied parameters to a bear minimum to first demonstrate the basics of incorporating the menu bar into a web page. Here we simply add the applet to the web page and construct a menu with just three buttons.

And here is the html code,

<applet code="AWTfloatMenuApplet.class" archive="AWTfloatMenu.jar" width=0 height=0 mayscript>
<param name="cabbase" VALUE="AWTfloatMenu.cab">

<!-- General Applet Parameters -->
<param name="OpenOnClick" value="true">
<param name="BackgroundSound" value="bgsound">
<param name="Position" value="200,250">

<!-- Title Bar Parameters -->
<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,100"> <!-- background color -->
<param name="TitleFont" value="Helvetica,N,12"> <!-- text font -->

<!-- Root Menu parameters -->
<param name="rootButtonWidth" value="120"> <!-- button width -->
<param name="rootButtonHeight" value="30"> <!-- button height -->
<param name="rootGap" value="0"> <!-- gap between buttons -->
<param name="rootBorderEffect" value="1"> <!-- Border Effect -->
<param name="rootMouseoverEffect" value="2"> <!-- Border Effect mouseover -->
<param name="rootMouseclickEffect" value="2"> <!-- Border Effect mouseclick -->

<!-- Root Menu Button data -->
<!-- Text | Sub ID | Font | url | target | Background Color | Arrow Color | Mouseover Background Color | Mouseover text color | Mouseclick Background Color | Mouseclick text color | Image | mouseover image | mouseclick image | image position | text position | text color | sub menu open sound effect | button click sound effect | status message text -->
<param name="button1" value="Button One| |Helvetica,N,12| | |57,156,255|0,64,128|0,97,193|170,213,255|0,97,193|170,213,255| | | |3,3|30,20|0,64,128| | | ">
<param name="button2" value="Button Two| |Helvetica,N,12| | |57,156,255|0,64,128|0,97,193|170,213,255|0,97,193|170,213,255| | | |3,3|30,20|0,64,128| | | ">
<param name="button3" value="Button Three| |Helvetica,N,12| | |57,156,255|0,64,128|0,97,193|170,213,255|0,97,193|170,213,255| | | |3,3|30,20|0,64,128| | | ">

</applet>

 

Click Here for Example 2