Introduction to W3C DOM | Part 2

For the second part of this tutorial we are going to create a fun game using the DOM.

The purpose of the game is to successfully click on a number of coloured boxes in alphabetical order. the coloured boxes will initialy be grouped in a box at the top of the page. When a user clicks/selects a box we want it move out of the initial container box to a new one so as to display the selection they have made in order. Upon selecting all boxes we then need to verify whether the order was correct and display the results.

We'll get started with the CSS. I'm just going to give you the code for this without going into detail as this is a DOM tutorial.

Now for the HTML markup.

Now we get to the interesting stuff, the javascript and DOM

tags

Comments:

Featured Script

PHP Send this page to a friend script
as the title suggests you can add this script to any of your pages and and it will allow your visito... (read more)