Megosztás a következőn keresztül:


To write text for a pop-up window

Write the text for your pop-up windows, using any text editor, in the following format:

<SCRIPT Language=JavaScript> 
<i>font_variable</i>="<i>Facename[, point size[, charset[, PLAIN BOLD ITALIC UNDERLINE]]]</i>" 
<i>text_variable</i>="<i>A Pop-up Window</i>" 
<i>text_variable2</i>="<i>Another Pop-up Window"</i> 
</SCRIPT> 

where font_variable is the name of the variable that specifies the font attributes for the text, and text_variable is the name of the variable that specifies the text to appear in the pop-up window.

Example

The following script specifies 10 point italic Helvetica as the font to use for the text and defines one pop-up window:

<SCRIPT Language=JavaScript>
   MyFont="Helvetica,10,,italic"
   MyText="This is a pop-up window."
</SCRIPT>

Notes

  • You can place the pop-up windows anywhere within the <BODY> start and end tags of your HTML file.
  • The text for pop-up windows can also be stored in a text file with the .js file name extension that you reference from your HTML file.

Step 2: Insert the HTML Help ActiveX Control in Your HTML File