9.5.2 Using KeyHelp for pop-ups
KeyHelp is a freeware DLL that is part of Ralph Walden’s Key Tools. KeyHelp allows you to embed better pop-ups in HTML Help. For information about Key Tools, see:
http://grainge.org/pages/authoring/reverse_engineering/reverse_engineering.htm
For KeyHelp pop-ups to work, the KeyHelp ActiveX control, keyhelp.ocx, must be installed and registered on each user’s system.
You must use Mif2Go macros (see §28 Working with macros) to construct the HTML code that is needed around the content. For example, in your configuration file, you could include the following settings:
<script language="JavaScript" type="text/javascript">
function KeyDisplayPopup(URL) {
KeyPopup = new ActiveXObject("KeyHelp.KeyPopup");
KeyPopup.DisplayURL(URL,-1,-1);
The cross-reference format you use to reference the pop-up should apply a character format; for example, PopText:
To make the cross references call the KeyHelp DLL, include the following settings:
PopText=JavaScript:KeyDisplayPopup('myproj.chm::<$$_linksrc>')
Make sure the material to be popped up is in a file of its own. For example, if you are using glossary entries as pop-up topics:
> 9 Generating Microsoft HTML Help > 9.5 Creating pop-ups for HTML Help > 9.5.2 Using KeyHelp for pop-ups