Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

7 Producing on-line Help > 7.9 Including expandable sections in Help topics > 7.9.7 Deploying JavaScript code for drop-down sections > 7.9.7.1 Naming the JavaScript macro for drop-down sections


7.9.7.1 Naming the JavaScript macro for drop-down sections

By default, the name of the JavaScript macro is $DropJS. To specify a different name for this macro, and by implication, to supply your own macro body:

[DropDowns]

; This is the code that goes in the <head> or in a JS file:

DropJSCode = <$DropJS>

Enclose the macro name in angle brackets. Including this setting is tantamount to saying:

Do not write this macro; I am supplying my own version.

If you specify a value for DropJSCode, you must provide the named macro in your configuration file or in a macro library.

If you do not specify a value for DropJSCode, or if you do not provide the named macro, Mif2Go includes either the composite JavaScript code (see §7.9.4.1 Specifying the type of link for drop-down sections) or one of four built-in versions of this macro; see §7.9.7.4 Inspecting the JavaScript code for drop-down sections.



7 Producing on-line Help > 7.9 Including expandable sections in Help topics > 7.9.7 Deploying JavaScript code for drop-down sections > 7.9.7.1 Naming the JavaScript macro for drop-down sections