Tutorials

A simple menu

This is the html code for the applet below:
<APPLET code="JMSPopupMenu.class" archive="jms.jar" width=240 height=40>
<PARAM name="cabbase" value="jms.cab">
<PARAM name="menu0" value="2,1,FFFFFF,menu1.gif">
<PARAM name="names0" value="Previous,Next">
<PARAM name="links0" value="jmstutorial1.html,jmstutorial3.html">
<PARAM name="target" value="tutorial">
</APPLET>

This is the image menu1.gif:
menu1.gif

You can create menus in the PopupMenu applet by using the 'menu' parameter followed by a number. The 'menu0' parameter always is the bottom menu. In the 'menu' parameter you should enter a couple of things seperated by commas. The first two numbers are the number of horizontal and the number of vertical items in the menu. Here the menu is 2 wide and just 1 item high. Next is a hexcolor code for the color of the rectangle to go over the items. Next comes the image to use for the menu and there's also a fifth optional parameter to create transparent menus. More about this later on. You can use the 'names' parameter to add names to the items in the menu. The links are done with the 'links' parameter. There's also a general 'target' parameter to define the target frame.

III - A more complex menu