headerfile = "filename"
The headerfile command is used to insert native Html code directly into the Html file(s) generated by Palview. The headerfile must be a simple text file that contains Html code and the file should be located in the same folder as the PGN file. The entire contents of this file will be read and inserted at the top of each Html page Palview creates. This allows webmasters to create a banner at the top of their pages. The headerfile contents is inserted immediately after the <BODY> Tag and before the first game in the Html file. A simple example of a headerfile is : <A HREF='chessclub.com'><IMG SRC='home.gif'>ChessClub Home Page</A> This command can be extremely useful when preparing pages for Live game coverage using Eric Bentzen's excellent Palive program. You can use the headerfile option to insert a site banner above all the live broadcast games that will maintain the look and feel of your own website. Yet one more good use that can be made with the headerfile command is in setting up a Game of the Day page for your chess site. By using the headerfile and footerfile commands, you can effectively copy the top and bottom of your Html file and then get Palview to insert the top and bottom around each day's new game. This will allow you to rebuild the page each day without having to edit the Html file that Palview generates for each new game. For more information on Live game broadcast see Palview and Live Game Broadcasts and Eric Bentzen's documentation on Palive. |