home / experts / javascript / column45 |
|
Building the DOM TreeAs you saw from the main script, building the DOM tree is based on two functions:
The function is based on cloning and appending. First we clone the
Once we have a new node,
The function just loops three times over the above cloning-appending pair, once per a puzzle square in a row. Cloning and appending nodes is explained in detailed in Column 43. The
The cloning here is after the |
Produced by Yehuda Shiran and Tomer Shiran
Created: August 2, 1999
Revised: August 2, 1999
URL: http://www.webreference.com/js/column45/build.html