| Java menu knowledge base XIXL - IMG command
Use: IMG1:tag1.gif;IMG2:tag2.gif
Applets support a varying number of these commands. IMG1 through
to IMG6 may be available. All are used for suffixing a small
unique graphic onto any text used for this menu entry. These images are
known as "tag graphics" or "text graphics". When used instead of text, such an image would typically
be a small text graphic containing a special font or effect. When used
in addition to text, such an image would typically contain a note such as
"new", "updated", or "cool". As tag graphics are not preloaded and are therefore
not memory-efficient, they should be used only occasionally. For memory-efficient use with lots of images in the menu, you should choose an image-map
based applet (such as X-Bar Powerbar II), not tag graphics.
Image files must be placed in the same directory as the
applet or in a sub-directory of this directory, otherwise they will not load.
IMG1 always specifies the default tag graphic.
IMG2, if specified, names an image to replace the
default image when the mouse moves over the entry. IMG3 to IMG6 will
have applet-specific functions - refer to individual applet documentation.
Most applets which support the IMG command allow you
to fine-tune tag graphics by shifting their position slightly. Tag graphics can be shifted up or down and left or right using the following parameters. The value should be a small positive or negative integer specifying pixel distances.
|
|