Check out Makruk (Thai Chess), our featured variant for March, 2025.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

Xiangqi: Chinese Chess. Links and rules for Xiangqi (Chinese Chess). (9x10, Cells: 90) (Recognized!)[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Mon, Apr 21 12:53 PM PDT in reply to Fergus Duniho from 12:46 PM:

You are right, Display() only takes care of the variable aspects of the position, and the board size and background are determined during initializaton. I think you shoud do this:

getElementById('board0').style.backgroundImage = 'url(xxx)';

Where the 0 in board0 is really the sequence number of the Diagram on the page (which should be 0 for the first Diagram), and xxx the URL of the image you want to instate as background.