|
||
|
|
Chapter 6 Customizing Graphics and Color
This chapter describes how to change the appearance of default gateway forms. The chapter contains the following sections:
The default gateway installed during Directory Server installation matches the standard appearance of Netscape products. The gateway Interface Templates can be modified to customize the appearance of the following:
The default gateway banner image that appears at the top of the gateway forms is
title.gif. This image can be replaced by a different banner image stored asclients/dsgw/html/title.gif.Updating the Banner Image (title.gif)
The following sections describe how to change the dimensions of the banner image as well as how to change the banner image filename.
Changing Dimensions of Banner Image
The default Netscape banner image has a height of 40 pixels and a width of 530 pixels. When using a banner image with a different pixel height and width, change the specifications of the image in all files in
clients/dsgw/htmlwhere the image is referenced:Changing Filename of Banner Image
Keep the default filename
title.giffor the banner image. Changing the default filename of the banner image requires updating the filename in all files where the image is referenced.
Any image used to replace
title.gifmust be a true gif image. Images in other formats (PICT, EPS, BPX, TIFF) will not appear as intended.
Buttons on gateway forms can be replaced by updating button image files stored in the
clients/dsgw/htmldirectory. Table 6-1 describes the button image files stored in theclients/dsgw/htmldirectory.
The default Netscape button images have a height of 24 pixels and a width of 122 pixels. If the new button image uses a different pixel height and width, these specifications must be changed in all files in the
clients/dsgw/htmldirectory where the image is referenced:Changing the default filename of a button
.giffile requires updating the filename in all files where the image is referenced.Any image used to replace a button image must be a true gif image. Images in other formats (PICT, EPS, BPX, TIFF) will not appear as intended.
Changing the color schemes for a form requires editing the files that make up a gateway form. The procedure for changing colors depends on the gateway file type.
- Files Controlling Colors on Gateway Forms
![]()
- Changing Colors Using BODY Tag
![]()
- Changing Colors Using Directives
![]()
Files Controlling Colors on Gateway Forms
Table 6-2 describes the gateway files that control the appearance of gateway forms. These files may need to be updated when changing the appearance of the banner image, button images, or background and body colors.
Table 6-2 Files Controlling Appearance of Gateway Forms
Changing Colors Using BODY Tag
Table 6-3 lists the five standard color attributes that can be changed.
Table 6-3 Colors and Related Attributes for BODY Tag
To adjust background colors in the banner files and other standard HTML files, edit the HTML to change the color associated with the
BGCOLORandTEXTattributes to a different RGB color value. (For example, to change background to aquamarine and text to white, use<BODY BGCOLOR="#70DB93" TEXT="#9932CD">).Changing Colors Using Directives
To change background colors in script files, add a
COLORSdirective immediately before theBODYtag. The syntax in the following example shows the use of theCOLORSdirective to change text color to blue, background color to aqua, and the link color to red:<!-- COLORS "attribute=color [attribute=color [...]]" -->
<!-- COLORS "TEXT=#0000FF BGCOLOR=#00FFFF LINK=#FF0000" >
In the example, the attribute is a standard HTML
%colorattribute and color is an RGB color value in the form #rrggbb (or a standard color name, example, aquamarine).
The following sections describe procedures for customizing the color of tables:
- Specifying Color Names and Color Codes
![]()
- Changing Color of Table Headings
![]()
- Changing the Background Color of Table Rows
![]()
Specifying Color Names and Color Codes
There are two ways to specify colors:
- Use a color value, a six digit hexadecimal number known as the red-green-blue (RGB) triplet. The RGB triplet always begins with a hash mark (#) followed by 3 2-digit codes that represent the amount of red, green, and blue that make up the color (#rrggbb). There are over 16 million RGB color codes.
![]()
- Use a color name. There are sixteen standard case-insensitive color names. Table 6-4 lists the sixteen standard color names and their equivalent RGB values.
![]()
Table 6-4 Sixteen Standard Colors and their Hexadecimal Values
Changing Color of Table Headings
To change the color of table heading text, edit the following lines within the template file:
<TR BGCOLOR=006666 COLSPAN=4><FONT FACE=ARIAL, HELVETICA COLOR=WHITE>
so that the BGCOLOR value is an RGB color value in the form #RRGGBB or a standard color name. The font color can be changed from white to another color using the same method. Within a single template file there may be multiple tables and consequently multiple table head rows that need to be modified to maintain a consistent color scheme.
Changing the Background Color of Table Rows
To change the color of the table body rows, edit the following line for each table within the template file:
<TABLE CELLSPACING="2" BORDER BGCOLOR=#F2F2F2 ...
so that the
BGCOLORattribute specifies the RGB color value in the form #rrggbb or a standard color name representing the new color.
© 2001 Sun Microsystems, Inc. Portions copyright 1999, 2002-2003 Netscape Communications Corporation. All rights reserved.
Read the Full Copyright and Thrid-Party Acknowledgments.
Last Updated October 31, 2003