hex2diag is a JavaScript tool to easily add hexagonal boards to a webpage. The source code was based on the board2diag tool.
First, one has to include the call to the board2diag.js file, in the following form:

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

Then, one can use a new JavaScript part, and make a call to hex2diag. 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 one argument, which is a string of the following form:

Version 0.6 - Dec 2003