MMFarItemMenu
Manual Copyright Mandomartis Software Company 1999, all rights reserved |
INTRODUCTION This is a simple menu which will fly in each menu item from the distance when initialized. When you move the mouse pointer across an item, the item will change color. The applet has the following features:
Before using this applet you must read the license agreement.
APPLET INFORMATION
DEPENDENT FILES The following files must be included with the applet in order for it to function properly: mmfaritemmenu.class
GENERAL PARAMETERS This applet is configurable with normal HTML applet parameters. The first thing that must be done is to configure the applet main tags: <APPLET CODE="mmfaritemmenu.class" WIDTH=400 HEIGHT=100> </APPLET> As you can see, the size in the example is 400x100 pixels. You can change the dimensions to whatever size you wish. However, you take note that sometimes a big applet requires more processing power which may be hard for some computers. The following parameters may not be changed: <PARAM name="mandomartis0" value="This is an applet from Anibal's Essential Applets package"> These are Mandomartis credits are are used to identify the applet. The following parameter controls the general frame delay in milliseconds, and thus the frames per second (FPS). The default value is 70: <PARAM name="delay" value="70">
SETTING UP THE MENU ITEMS WITH DESCRIPTIONS, URLS AND TARGET FRAMES Write each menu item using the "item" parameter like this: <PARAM name="item0" value="Main"> Specify your first menu item in the parameter "item0", in "item1" you specify the second menu item and so on. The same system of adding items is applied for the item descriptions which will appear at the bottom of the applet ("description"), the URLs ("url") and target frame name for each URL ("target") respectively: <PARAM name="description0" value="Click here to go to the main page"> Now the content of "description0" will be displayed when you move the mouse pointer across the area where "item0" is. If you click on that item then the applet will jump to the URL "http://www.yourhost.com/index.html". Note the "http://" and the host on each URL. You MUST specify full URLs. Relative URLs will not work with this applet. If a target frame name has been specified then the URL will be invoked on that specific frame. The values "_top", "_self", "_left" and so on, are standard built-in HTML target frames.
SELECTING COLORS With the "textcolor" parameter you can specify the color of the menu items: <PARAM name="textcolor" value="ffff00"> The "selectedtextcolor" is activated when you move the mouse pointer across a menu item. The menu item will change to this color. <PARAM name="selectedtextcolor" value="000000"> The "shadowcolor" is the color of the menu item shadows. <PARAM name="shadowcolor" value="080808"> The "backgroundcolor" is only effective if you do not use a background image. <PARAM name="backgroundcolor" value="003f00"> The "decriptiontextcolor" is the color that the description text will have. <PARAM name="descriptiontextcolor" value="00ff00">
FONT PARAMETERS The font parameters affect the font type ("font" parameter), font size ("fontsize" parameter) and the font style ("bold" and "italic" parameters): <PARAM name="font" value="Helvetica"> The font types can be "TimesRoman", "Helvetica", "Courier" and "Dialog". If you want the font style to be bold or italic then specify the value "Yes" on these parameters.
OTHER PARAMETERS The background image can be specified by the "backgroundimage" parameter: <PARAM name="backgroundimage" value="background.gif"> This parameter overrides the "backgroundcolor" parameter's effect if you specify it. By leaving this parameter blank you can disable the background image and use the background color instead. Note that the background image must have the exact dimensions as the applet. The menu can be set to an horizontal or vertical menu by specifying "Yes" or "No" as a value in the "horizontal" parameter: <PARAM name="horizontal" value="yes"> The "shadowdisplacement" parameter is used to displace the text shadow from the menu items. Note that by specifying this parameter to the value 0 you can disable the shadow: <PARAM name="shadowdisplacement" value="2"> The "descriptiontextspeed is used to set the description text scrolling speed (for the vertical mode only): <PARAM name="descriptiontextspeed" value="5"> Use the "pathspeed" to increase the initial menu item animation speed: <PARAM name="pathspeed" value="10">
The following HTML text is an example of an applet configuration: <APPLET CODE="mmfaritemmenu.class" WIDTH=400 HEIGHT=100>
|
© Copyright 1999 Mandomartis Software Company |