8.4.2 Using KeyHelp for pop-ups
KeyHelp is a freeware DLL from Ralph Walden that allows you to embed better pop-ups in HTML Help. For more information, see:
http://www.keyworks.net/default.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 §27 Working with Mif2Go 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:
> 8 Generating Microsoft HTML Help > 8.4 Creating pop-ups for HTML Help > 8.4.2 Using KeyHelp for pop-ups
