| Java menu knowledge base How to write parameters
How to write parameters
The available parameters are described in full in the
parameter list for your applet. Parameters allow you
to tweak or configure the applet to suit your own
aesthetic design and desired behaviour. For example,
you can use parameters to change colours, change
applet behaviour, reposition and resize elements
such as text, buttons, icons, etc.
When editing parameters, we recommend you use a
simple text editor, such as Windows Notepad, and
edit your HTML source code directly as described
below.
Parameters are entered
into your HTML code like this:
<param name="....." value=".....">
For example, if you want to use a parameter called "menufile"
and give it the value "menu.txt" to achieve the effect described in the
list of parameters, then write:
<param name="menufile" value="menu.txt">
Note the following:
- the inverted commas are optional unless a name or value contains white space (gaps)
- the spelling is important
- the case is important
- the order of the parameters is not important
- if the same parameter appears twice in the HTML, it will only be read once, so you
may find yourself changing a parameter and wondering why you can't see the effect; don't write
parameters twice
- the delivery packages typically contain samples in which most of the
parameters are already written in for you; use this as a template to save
yourself time
- change one parameter at a time and test the effect before you continue - this
is a recipe for stress-free development
- if you want the applet to access a resource such as a menu file, sound file or
image, make sure that the resource is in the same directory as the applet
- if you are using an image parameter and want to tell the applet NOT to use
an image, do this by removing the parameter completely
|
|