rook and pawn
Sister sites
Informatics for civil society
Everything you ever wanted to know about XML
Fully indexed and interlinked RFC repository
International Chemical Identifier information
Chess-Ref.org

Howto put a game from Chess-Ref.org onto your own page

Because we strongly believe in free software and information sharing, we give you a simple way to download a game that is interesting for you and to put it onto your website.

On the page of each game, you will find a link to the game sources. There you will find several parts of the source code, that need to be put into the code of you page, in order to work. But before you can make any use of it, you will have to download a small package with the chess pieces graphics, Chess-Ref.org CSS (style-sheets) etc. You need to do it only once, these files are the same for all games.

All the files you need are in this package. The only thing you have to do, is to unzip the archive into the directory hierarchy of your website in such a way, that the directories stored in the archive are on the same level as the directory where the game sources reside.

Example

Lets say your pages (containig the donwloaded games) are stored in the directory mypages/chess. Then you have to unzip the archive into the mypages directory, so that e.g. the files in the Pict directory are reachable via ../Pict/picture.png from your page which is located in the mypages/chess directory.

After you have set up the site in this way, you can download the HTML source code from the page of the corresponding game, paste it into your html file and put this file into the right directory (mypages/chess in the example).

Note: Please note that the the generated code is not a complete HTML page. It contains only the information related to the game you have chosen. You have to wrap it into your code, so that it fits your page layout and other needs.