Coding Popup Windows

Each popup window is contained in its own topic. The topic can reside in the same file as other topics, or you can create a separate file just to hold popup topics. Each popup topic is referenced through its unique context string. A popup topic can contain jumps to any other topics in the title.

After creating popup topics, you must code each word or phrase you want to use as a hot spot for displaying the popup window. The coding to display a popup window has two parts:

The word or phrase the user clicks to display the window, formatted as underline text

The context string that identifies the topic that appears in the window, formatted as hidden text

·To code a jump to a popup window:

1.Create the topic, including any jumps to other topics or multimedia elements you want.

2.Create a context string footnote for the popup topic. For example, the following context string identifies the window topic for “Mexican War”:

#MexicanWar

3.Display the topic from which you want to display the popup window.

4.Select the word or phrase that displays the window.

5.From the Format menu, choose Character and format the word or phrase as underline text, and then cancel the selection of the term.

6.From the Format menu, choose Character again and clear the Underline check box and select Hidden Text check box.

7.Type the context string of the topic that contains information for the window (for example, “MexicanWar”). If you want the hot spot to be invisible in the topic, use a percent sign (%) as the first character of the context string.

8.From the Format menu, choose Character again and clear the Hidden check box. The reference would look as follows:

The same rules for coding jumps apply to coding popup windows:

Make sure no spaces are between the underlined popup reference and the hidden text context string; for example the following is correct:

Mexican WarMexicanWar

The following is incorrect:

Mexican War MexicanWar

If you place the context string at the end of a paragraph, or at the end of a line with a “soft” carriage return, leave the paragraph or carriage-return mark as normal text (don't format it as hidden text).

You can format text using underlining without creating a popup window as long as invisible text doesn't follow the underlined text.