11.3.7.3 Locating graphics files for JavaHelp and Oracle Help
To view images in a generated JavaHelp system, if you are using a typical directory structure, image files must be in a subdirectory of the helpset directory such as help\graphics, and HTML files that reference the images must be in a parallel subdirectory, such as help\html. (See §11.3.7.1 Understanding the JavaHelp / Oracle Help directory structure).
When you have finished generating a JavaHelp or Oracle Help system, both of the following must be true:
• all graphics referenced from HTML topic files are in one subdirectory of the helpset directory; see §11.3.7.2 Letting Mif2Go set up the directory structure and copy files
• all references to graphics specify a relative path from the helpset directory to the graphics subdirectory.
For example, to specify a relative path from directory help (where the helpset is located) to subdirectory help\graphics (where graphics are located):
For JavaHelp and Oracle Help (only), the directory designated by GraphSubdir (see §11.3.7.2 Letting Mif2Go set up the directory structure and copy files) is the default setting for [Graphics]GraphPath, with “../” prepended.
Note: For JavaHelp and Oracle Help, forward slashes are required in path names you assign to keywords in the configuration file; see §4.4 Understanding the rules for configuration settings.
Mif2Go uses the value of GraphPath for the src attribute of <img> tags. See §31.3.1.1 Specifying graphics location for HTML.
To specify the location of images assigned to specific JavaHelp 2 windows, see §11.8.1.1 Assigning default window parameters for JavaHelp 2.
> 11 Generating JavaHelp or Oracle Help > 11.3 Setting up a JavaHelp or Oracle Help project > 11.3.7 Creating a directory structure for JavaHelp / Oracle Help > 11.3.7.3 Locating graphics files for JavaHelp and Oracle Help