|
| Back to other parameters
|
Example 1
Source menu file |
|
Menu source
<?xml version = "1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE Menu PUBLIC "-//Javabase//DTD TreeMenu 1.0//EN" "http://www.javabase.co.uk/TreeMenu/TreeMenu.dtd"> <Menu textcolor="5555FF" tooltiptext="Tooltip" tooltipfontstyle="i" mouseovertextcolor="0000FF" fill="false" gap="4"> <Item url="http://news.bbc.co.uk/" name="News\Headlines"/> <SubMenu name="Search"> <Item tooltiptext="Go Search!" url="http://www.google.com/" name="Google"/> <Item tooltiptext="Tooltip" url="http://www.yahoo.com/" name="Yahoo"/> </SubMenu> <Item url="http://java.sun.com/" name="Java"/> </Menu>
|
|
Example 2
Source menu file |
|
Menu source
<?xml version = "1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE Menu PUBLIC "-//Javabase//DTD TreeMenu 1.0//EN" "http://www.javabase.co.uk/TreeMenu/TreeMenu.dtd"> <Menu textcolor="5555FF" tooltiptext="Tooltip" tooltipfontstyle="b" mouseovertextcolor="0000FF" fill="false" gap="4"> <Item url="http://news.bbc.co.uk/" name="News\Headlines"/> <SubMenu name="Search"> <Item tooltiptext="Go Search!" url="http://www.google.com/" name="Google"/> <Item tooltiptext="Tooltip" url="http://www.yahoo.com/" name="Yahoo"/> </SubMenu> <Item url="http://java.sun.com/" name="Java"/> </Menu>
|
|
Specifying fonts
Fonts for a particular part of the menu (here called tooltipfontstyle) are specified using three different parameters: the font's name, the font's size and the font's style.
tooltipfontstylename
This is the name of the font to use. Unfortunately, different fonts are available on different browsers.However, the following font names are usually available universally: Times, Dialog, SansSerif, Serif, Monospaced, Helvetica, TimesRoman, Courier, DialogInput and ZapfDingbats.
tooltipfontstylestyle
This is the point (pt) size of the font which you wish to use.
tooltipfontstylesize
This parameter can be used to specify the font style. It should be set to "" for the default style,"i" for italic, "b" for bold and "bi" for bold italic.
Back to other parameters |
|
|