|
When Black Star was creating our new web site,
Netscape:
Extensions to HTML) We wanted to add this tag to all the pages HyperNews generated. And we wanted to be reasonably general in case we later decided to change our color scheme (as we did once during development.) Therefore we added five new variables to the hnrc file as follows
$bgcolor="#000000"; $textcolor="#f0f0f0"; $linkcolor="#FFFF00"; $vlinkcolor="#00FF00"; $alinkcolor="#0077FF";Next we needed to tell HyperNews to use these variables to define the appropriate tags. Currently HyperNews HTML files can be generated by one of three programs, hnview.pl, edit-response.pl, and edit-article.pl. In each of these you merely replace the <BODY> tag with the expanded body tag: <body bgcolor="$bgcolor" text="$textcolor" LINK="$linkcolor" VLINK="$vlinkcolor" ALINK="$alinkcolor"> That's all there is to it. Now all the HyperNews articles provide white text on black just like the rest of the server. I hope this idea and code may be of some use to those of you with similar concerns.
|
| Inline: | Outline: |
|
to: |
|
|