TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Subject:Help needed: HTML Help Workshop pop-up windows From:Ron Jenkins <rjenkins -at- MYNA -dot- COM> Date:Fri, 26 Jun 1998 14:20:59 +0000
I'm trying to get a pop-up window to work in MS HTML Help Workshop.
This should be basic, I think, but I'm stumped, new to HTML Help, and
the lone tech writer here. The HTML Help Workshop's on-line help topic
"To create a pop-up window in an HTML file" doesn't seem to help. It
instructs me as follows:
1. Click _here_ to see a sample pop-up.
2. Right-click in this window and then click View Source
to view the code for this HTML file.
3. Copy the OBJECT tag and the Javascript into your file.
When I try clicking "here" nothing pops up, so I can't get the
pop-up's source code, as there is nothing to right-click. The
instructions might be ambiguous, however. When I instead try
right-clicking the page "To create a pop-up window in an HTML file" I
can find source code with this OBJECT tag:
I have IE 4.0 installed, so that shouldn't
be a problem. Any assistance would be appreciated, and a detailed
explanation would be wonderful.
-- Ron
=======================================================
PS: Incidentally, the HTML for the help page I describe is:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft HTML Help Workshop 4.0">
<title>To create a pop-up window in an HTML file</title>
<style>@import url(coUA.css);</style> <link disabled rel="stylesheet"
href="htmlhelp.css"> </head> <body bgcolor="#FEFEF2" topmargin="5"
leftmargin="10">
<h5 class="proch">To create a pop-up window in an HTML file
</h5>
<OBJECT id=hhctrl type="application/x-oleobject"
classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"
>
</OBJECT>
<ol>
<li>Click <A HREF=
JavaScript:hhctrl.TextPopup("This is how a pop-up 
window looks.","Verdana,10",9,9,-1,-1)> here</A> to see a sample
pop-up.
<li>Right-click in this window and then click <B>View Source</B> to
view the code for this HTML file. <li>Copy the <code>OBJECT</code>
tag and the <code>JavaScript</code> into your file. <BR><BR>In this
example, Verdana, 10 point is the font, followed by a value of 9 for
the left and right margin, and -1 for the foreground and background
colors. </li> </ol>