About HyperNews
 Next-in-Thread Next-in-Thread
 Next Message Next Message

Netscape Extensions to HyperNews (including code) 

Forum: HyperNews
Date: 1995, May 08
From: Elliotte Rusty Harold

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.

 Next-in-Thread Next-in-Thread
 Next Message Next Message
Inline:
 1 1
 All All
Outline:
 1 1
 2 2
 All All

 Add Add
to: "Netscape Extensions to HyperNews (including code)"

 Members Members
 Subscribe Subscribe
 Admin Mode Admin Mode
 Show Frames Show Frames
 Help Help


|| About || Instructions || Test || Guestbook || Future || || Source || Installation || Consortium ||

Earn money with Scour!
Google
 
Web www.HyperNews.org
Earn money with Scour!