Moxi Media Inc.
<TAB> Tree View | Discussion Forum

IMF Developer's Guide » Site Configuration » <TAB>  

The <TAB> element defines a tab for the tab bar above the map. There is a set of predefined tab graphics, but you can easily create new tabs and add them to your IMF application.

See also: tab image gallery and the examples listed at the bottom of the <TABS> element description.

Frequency Parent Elements (this element is valid within):
PR+ <TABS>
   

Attributes Description
name The name of the tab, for use in the automatically generated help. Required.
height The height of the tab image, in pixels. Required.
help The URL of the text file containing help text for automatically generated help. If this attribute is present and if the text can be read from the URL, the text in the URL will appear in the help document beside the tab's name. If this attribute is empty, the text in the status attribute will be used instead. The URL can contain the special variable $IMF to specify that the document is relative to the IMF installation directory. Absolute URLs may also be used. URLs that don't start with http: or $IMF are resolved relative to the location of the XML file. Optional.
hint The pop-up tip that will appear when the user moves the mouse over the tab. Optional.
graphic The URL of the image for the tab. The URL can contain the special variable $IMF to specify that the document is relative to the IMF installation directory. Absolute URLs may also be used. URLs that don't start with http: or $IMF are resolved relative to the location of the XML file. Required.
rollover-graphic The URL of the rollover image for the tab. If defined, the rollover graphic will be displayed when the user moves the mouse over the tab. Optional. The URL can contain the special variable $IMF to specify that the document is relative to the IMF installation directory. Absolute URLs may also be used. URLs that don't start with http: or $IMF are resolved relative to the location of the XML file. Optional.
status The message that will appear in the browser's status area when the user moves the mouse over the tab. Required.
target The name of the frame that the URL will be executed in. Use "_blank" to execute it in a new browser window. Required.
url The URL that will be executed when the tab is clicked. Required.
width The width of the tab image, in pixels. Required.
   

Frequency Description (in this context)
PR+ The <TAB> element must appear one or more times within the <TABS> element.
   

Example:

<TAB url="$IMF/imfLayers.jsp"
     target="dataFrame"
     hint="Set Layers"
     status="Set which layers display, and choose an identify layer."
     help="$IMF/help/en/layers.txt"
     graphic="$IMF/tabs/22/ltblue/en/layers51x22.gif"
     width="51" height="22" />