October 2010
Beginner
373 pages
7h 28m
English

CSS styles
generating markup for alphabet buttons
using an array for a sequence of drawings
using a character string for the secret word
an external script file for the word list
setting up and removing event handling
The goal for this chapter is to continue demonstrating programming techniques and the features of HTML5, Cascading Style Sheets (CSS), and JavaScript, combining dynamic creation of HTML markup along with drawing graphics and text on the canvas. The example for this chapter is another familiar game—the paper-and-pencil game of Hangman.
Just in case you need to brush up on the rules, the game is played as follows: ...
Read now
Unlock full access