|
INTRODUCTION
In this freeware menu, the menu items will rotate into their place from
random distance. A 3d effect is is used for the menu item movements. 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.
- Supports a background image.
- Specify font type, font size and font style.
- You can specify the text color, selection color, background color
and the brick colors.
- 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-07-27 |
| Last update information: |
<NONE> |
DEPENDENT FILES
The following files must be included with the applet in order for it
to function properly:
mmbrickmenu.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="mmbrickmenu.class" WIDTH=450 HEIGHT=70>
</APPLET>
As you can see, the size in the example is 450x70 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 "brickbackgroundcolor" and the "brickbacksidecolor"
are the front and back colors of the bricks. Note that the "brickbackgroundcolor"
is ineffective if you are using a brick image:
<PARAM name="brickbackgroundcolor" value="ffffff"> <PARAM name="brickbacksidecolor" value="ffff00">
The "backgroundcolor" is only effective if you do not use a
background image.
<PARAM name="backgroundcolor" value="003f00">
The "decriptiontextcolor" and the "descriptionbackgroundcolor"
are the colors that the description text and window will have.
<PARAM name="descriptiontextcolor" value="00ff00">
<PARAM name="descriptionbackgroundcolor" value="ffff7f">
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 for the applet and for all the bricks can be specified
by using the "backgroundimage" and "brickimage" parameters:
<PARAM name="backgroundimage" value="background.gif"> <PARAM name="brickimage" value="brickimage.jpg">
These parameters overrides the "backgroundcolor" and "brickbackgroundcolor"
parameters effect respectively, if you specify them. By leaving these
parameters blank you can disable the images and use the colors instead.
Note that the images will be resized to have the same dimensions as the
applet and the bricks respectively.
Use the "brickwidth" and "brickheight" parameters
to set the dimensions of the bricks:
<PARAM name="brickwidth" value="100"> <PARAM name="brickheight" value="20">
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 "descriptiontextspeed" and the "descriptionwindowwidth"
parameters are used to set the description text scrolling speed and the
description window width:
<PARAM name="descriptiontextspeed" value="5">
<PARAM name="descriptionwindowwidth" value="50">
Use the "pathspeed" to increase the initial menu item animation
speed:
<PARAM name="pathspeed" value="10">
With the "nrotations" parameter you can set the number of turns
you want your items to make:
<PARAM name="nrotations" value="4">
By setting the "animateoneitem" parameter to "yes"
each menu item will rotate into place one by one, otherwise all of them
will move into place at once:
<PARAM name="animateoneitem" value="yes">
EXAMPLE OF A FULL CONFIGURATION
The following HTML text is an example of an applet configuration:
<APPLET CODE="mmbrickmenu.class" WIDTH=450 HEIGHT=70> <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="delay" value="70"> <PARAM name="horizontal" value="yes"> <PARAM name="font" value="Helvetica"> <PARAM name="fontsize" value="14"> <PARAM name="bold" value="yes"> <PARAM name="italic" value="yes"> <PARAM name="textcolor" value="4f4f4f"> <PARAM name="backgroundcolor" value="ffffff"> <PARAM name="descriptiontextcolor" value="000000"> <PARAM name="descriptionbackgroundcolor" value="ffff7f"> <PARAM name="selectedtextcolor" value="00009f"> <PARAM name="brickbackgroundcolor" value="ffffff"> <PARAM name="brickbacksidecolor" value="ffff00"> <PARAM name="descriptionwindowwidth" value="50"> <PARAM name="descriptiontextspeed" value="5"> <PARAM name="backgroundimage" value="brickmenuback.jpg"> <PARAM name="brickimage" value="brickimage.jpg"> <PARAM name="brickwidth" value="100"> <PARAM name="brickheight" value="20"> <PARAM name="pathspeed" value="2"> <PARAM name="nrotations" value="4"> <PARAM name="animateoneitem" value="yes"> <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.mandomartis.a.se/essentialapplets/clickpage.html"> <PARAM name="url1"
value="http://www.mandomartis.a.se/essentialapplets/clickpage.html"> <PARAM name="url2"
value="http://www.mandomartis.a.se/essentialapplets/clickpage.html"> <PARAM name="url3"
value="http://www.mandomartis.a.se/essentialapplets/clickpage.html"> <PARAM name="target0" value="_top"> <PARAM name="target1" value="_top"> <PARAM name="target2" value="_top"> <PARAM name="target3" value="_top"> </APPLET>
|