tower2diag


tower2diag is a JavaScript tool to easily add  boards with stacks or towers to a webpage. The source code was based on the board2diag tool. 

First, one has to include the call to the tower2diag.js file, in the following form:

<SCRIPT LANGUAGE="JavaScript" src="tower2diag.js"></SCRIPT>

Then, one can use a new JavaScript part, and make a call to tower2diag. This version assumes all files are in the same directory (this is easily changed). Just click on to download the actual version. 

The function has two arguments, the first is a background image for the board (include relative path and extension). The second argument is a string of the following form:


Version 0.31 - June 2002