Colors

You can use the following global variables to specify colors of various elements of your pop-up messages:

For example, if you'd like brown text and border, pink background and a 3-pixel-wide gray shadow for all pop-up messages on your page, in the HEAD section of the page use the following code:
<script language="JavaScript"><!--
jPopUpFontColor="brown"
jPopUpBgColor="#FFEEEE"
jPopUpBorderColor="brown"
jPopUpShadowColor="gray"
jPopUpShadow=3
//--></script>
Click here to see a pop-up message with these settings!

NOTES:

  1. If you use Windows-style message boxes (jPopUpStyle=2), then the settings jPopUpBgColor, jPopUpBorderColor and jPopUpShadowColor will be ignored!
  2. If you don't set colors, the following default values will be used:
    jPopUpFontColor="black"
    jPopUpBgColor="#FFFFEE"
    jPopUpBorderColor="black"
    jPopUpShadowColor="#AAAAAA"
  3. You can use predefined textual color names (such as "gray") as well as hexadecimal color codes (such as "#808080"). A complete list of color names supported by Netscape Navigator and Microsoft Internet Explorer can be found at JavaScripter.net/faq/colornam.htm.

Copyright © 2000, Alexei Kourbatov