NavBar
Version : 2.0
Last revised date : 15/03/2000
I decided to make this applet as I could not find any ready-made applets that suits my taste. An example of the NavBar can be found on the top of the page. Features include configurable applet size, font and colour.
I have tested the applet under various conditions and everything seems to work well. For some reason, the NavBar does not change colour when the cursor is over the label under Internet Explorer but I do not consider that a major problem.
The applets are free for non-commercial use. Please seek my permission if you plan to use it on a commercial web site. The source code is available upon request for educational purposes. Blatant lifting or reproduction of the source code is strictly prohibited
The latest version of the applet is available at The Java Showcase. Please do not hesitate to contact me for any comments or suggestions.
Applet Parameters
font : Font. Ex : "TimesRoman"
fontstyle : Font style. Plain = 0; Bold : 1; Italic : 2; Bold + Italic : 3
size : Size of the font. Ex : "12"
target : Target frame or windows. Ex : "_new"
bgImage : Background image. Ex : "bg.jpg"
hover : Menu opens when mouse enters the field. "yes" or "no"
select : Displays the selection of the menu. "yes" or "no"
spacing : Spacing between the menus: Ex : "75"
BgColor : Colour of the background in hexadecimal. Ex : "000000"
BarButton : Colour of the menu bar button in hexadecimal. Ex : "FFFFFF"
HBarColor : Colour of the menu bar when highlighted. Ex : "FFFFFF"
BarColor : Colour of the menu bar in hexadecimal. Ex : "FFFFFF"
BarHFontColor : Colour of the items in the menu bar when highlighted. Ex : "FFFF00"
BarNFontColor : Colour of the items in the menu bar. Ex : "FFFFFF"
HMenuColor : Colour of the menus when highlighted. Ex : "FFFFFF"
MenuColor : Colour of the menus in hexadecimal. Ex : "FFFFFF"
HFontColor : Colour of the labels when highlighted. Ex : "FFFF00"
NFontColor : Colour of the labels. Ex : "FFFFFF"
Menu0, Menu1 ... Menu[i] : Label on the menu bar. Ex : "Search Engines"
Menu0URL, ... Menu[i]URL : Hyperlink for the menu. In this case, for the particular value of i, all Menu[i]Item[j] will be ignored.
Menu0Position, ... Menu[i]Position : Manual specification of the menu position. Ex : "400"
Menu0Target, ... Menu[i]Target : Hyperlink target for the menu.
Menu0Item0, ... Menu[i]Item[j] : Menu item. Ex : "Yahoo!"
Menu0URL0, ... Menu[i]URL[j] : Hyperlink for the menu item. Relative URLs accepted. Ex : "http://www.yahoo.com"
Menu0Target0, ... Menu[i]Target[j] : Hyperlink target for the menu item