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.
Re: Help needed: HTML Help Workshop pop-up windows
Subject:Re: Help needed: HTML Help Workshop pop-up windows From:Scott Gray <scotty -at- CM -dot- MATH -dot- UIUC -dot- EDU> Date:Fri, 26 Jun 1998 14:46:15 -0500
to pop up a window with JavaSCript doesn't require a new OBJECT.
do this ...
<a href=javascript:openawindow()>Click here to open a window</a>
To add the toolbar etc. simply replace "no" with "yes" above. To change
the size change the numbers (300 by 300 currently).
You really should learn Javascript. In the end it will be much easier than
struggling with these stupid programs that make claims they can't back up.
To learn JavaScript go to http://www.useractive.com/tutorial
Scott
On Fri, 26 Jun 1998, Ron Jenkins wrote:
> 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:
>
> <OBJECT id=hhctrl type="application/x-oleobject"
> classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
> </OBJECT>
>
> but no Javascript.
>
> 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>
>
> <table border="0" cellpadding="0" cellspacing="0">
>
> <tr> <td valign="top"><a href="popwin.htm"><img src="home.gif"
> alt="Home page link" border="0"></a> </td><td><a
> href="popwin.htm">About pop-up windows</a> </td></tr>
> <tr><td> </td></tr> </table>
>
>
>
> </body>
> </html>
> ======================================================
> ============================================================
> Ron Jenkins, Technical Communications
> Proteon LAN Products by Microvitec Inc
> 5620 Timberlea Blvd., Mississauga, Ontario, CANADA L4W 4M6
> Web: http://www.lantracer.com
> Voice: (905) 238-0473 Fax: (905) 238-1887
> E-mail (work): rjenkins -at- silcomtech -dot- com
> E-mail (personal): rjenkins -at- myna -dot- com
> ============================================================
>
>
>