Make your own free website on Tripod.com


THE JAVA APPLETS ANY SERIOUS WEB DESIGNER SHOULD HAVE

 

MMFarItemMenu Manual

Written by Anibal Wainstein

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:

  • Menu items support descriptions and URLs. Multiple target frames are supported.
  • The menu can be an horizontal or vertical menu by specifying a parameter. In vertical mode the description text will scroll in.
  • Supports a background image.
  • Specify font type, font size and font style.
  • You can specify the text color, selection color, background color and text shadow color.
  • Compatible with any Java compatible browser.

Before using this applet you must read the license agreement.

 

APPLET INFORMATION

Developer: Anibal Wainstein
Version: 1.0
Version date: 1999-06-23
Last update information: <NONE>

 

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">
<PARAM name="mandomartis1" value="It was developed by Anibal Wainstein / Mandomartis">
<PARAM name="mandomartis2" value="Get it at http://www.mandomartis.com/essentialapplets/">

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">
<PARAM name="item1" value="Products">
<PARAM name="item2" value="About">
<PARAM name="item3" value="Contact Us">

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">
<PARAM name="description1" value="See our products!">
<PARAM name="description2" value="About Mandomartis">
<PARAM name="description3" value="Give us your feedback!"> <PARAM name="url0" value="http://www.yourhost.com/index.html">
<PARAM name="url1" value="http://www.yourhost.com/products.html">
<PARAM name="url2" value="http://www.yourhost.com/about.html">
<PARAM name="url3" value="http://www.yourhost.com/contactus.html">
<PARAM name="target0" value="_top">
<PARAM name="target1" value="_top">
<PARAM name="target2" value="_top">
<PARAM name="target3" value="_top">

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">
<PARAM name="fontsize" value="16">
<PARAM name="bold" value="no">
<PARAM name="italic" value="yes">

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">


EXAMPLE OF A FULL CONFIGURATION

The following HTML text is an example of an applet configuration:

<APPLET CODE="mmfaritemmenu.class" WIDTH=400 HEIGHT=100>
<PARAM name="mandomartis0" value="This is an applet from Anibal's Essential Applets package">
<PARAM name="mandomartis1" value="It was developed by Anibal Wainstein / Mandomartis">
<PARAM name="mandomartis2" value="Get it at http://www.mandomartis.com/essentialapplets/">
<PARAM name="horizontal" value="yes">
<PARAM name="delay" value="70">
<PARAM name="shadowdisplacement" value="2">
<PARAM name="font" value="Helvetica">
<PARAM name="fontsize" value="18">
<PARAM name="bold" value="no">
<PARAM name="italic" value="yes">
<PARAM name="backgroundimage" value="">
<PARAM name="textcolor" value="ffff00">
<PARAM name="backgroundcolor" value="000000">
<PARAM name="shadowcolor" value="4f4f4f">
<PARAM name="descriptiontextcolor" value="00ff00">
<PARAM name="selectedtextcolor" value="7fff7f">
<PARAM name="descriptiontextspeed" value="5">
<PARAM name="pathspeed" value="10">
<PARAM name="item0" value="Main">
<PARAM name="item1" value="Products">
<PARAM name="item2" value="About">
<PARAM name="item3" value="Contact Us">
<PARAM name="description0" value="Click here to go to the main page">
<PARAM name="description1" value="See our products!">
<PARAM name="description2" value="About Mandomartis">
<PARAM name="description3" value="Give us your feedback!">
<PARAM name="url0" value="http://www.yourhost.com/index.html">
<PARAM name="url1" value="http://www.yourhost.com/products.html">
<PARAM name="url2" value="http://www.yourhost.com/about.html">
<PARAM name="url3" value="http://www.yourhost.com/contactus.html">
<PARAM name="target0" value="_top">
<PARAM name="target1" value="_top">
<PARAM name="target2" value="_top">
<PARAM name="target3" value="_top">
</APPLET>



Copyright 1999 Mandomartis Software Company