Click to return to the HTML Help home page    
Web Workshop  |  DHTML, HTML & CSS  |  HTML Help

To Write Text for Pop-up Windows


Microsoft Corporation

Updated June 10, 1999

  1. Copy the following syntax in your HTML file:

    <SCRIPT Language=JavaScript>
    font_variable="Facename[, point size[, charset[, PLAIN BOLD ITALIC UNDERLINE]]]"
    text_variable="A Pop-up Window"
    text_variable2="Another Pop-up Window"
    </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 of the pop-up window.


  2. Create one text variable (with a unique name) for each pop-up window.

Example

The following script specifies 10 point Verdana as the font to use for the text and defines four pop-up windows:

<SCRIPT Language=JavaScript>

popfont="Verdana,10,,plain"
square1="Welcome to Square 1!"
square2="This is Square 2!"
square3="Welcome to Square 3!"
square4="Square 4 welcomes you!" </SCRIPT>

Notes


next step Add the image to your project file
 


Back to topBack to top

Did you find this material useful? Gripes? Compliments? Suggestions for other articles? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.