Often we have a script with which we'd like to change the general screen background color. Now for old hands at scripting, this is easy. But what if you're new at this? It's actually still quite easy.
General screen background color is usually specified in one of two ways in a script. The common way is within the <BODY> HTML element. In a text editor, open the script you'd like to change and look for the <BODY> tag. It will usually look like this:
<BODY> or <BODY BGCOLOR=#someColor>
If a previously specified color is indicated, you can change it to any color you'd like (See the tutorial "Learning Hexadecimal" on this web site for a complete description of how screen colors are determined). If not, we'll just add a color specification. As an example, to change the color to red, we would change the above statement to look like this:
<BODY BGCOLOR=#FF0000>
Occasionally screen color is specified in what is called a Style Sheet, usually found at the top of the script. If it's done this way, look for a section like this:
<STYLE>
BODY {
background-color:#000000;
......
......}
</STYLE>
Make the same color change here as you would have in the <BODY> tag, changing the same six digits as before. Follow the same rules for color assignment. Now, resave the script and try it. You have changed the screen background color! Watch for these six digit color fields throughout the scripts you save. Don't be afraid to experiment with them to see what color changes you can make.