1 <!-- Adapted from the example in chapter 18 of
2 Danny Goodman's "JavaScript Handbook", IDG Books, 1996.
8 <TITLE>Weather Research and Forecast Model</TITLE>
9 <SCRIPT LANGUAGE="JavaScript">
12 // **functions that establish objects and environment**
14 function makeArray(n) {
16 for ( var i = 1; i <= n ; i++ ) {
22 // object constructor for each outline entry
23 // (see object-building calls, below)
24 function dbRecord(mother,display,URL,indent){
25 this.mother = mother // is this item a parent?
26 this.display = display // text to display
27 this.URL = URL // link tied to text
28 this.indent = indent // how deeply nested?
32 // create object containing outline content and attributes
33 // To adapt outline for your use, modify this table. Make sure
34 // that the size of the array (db[i]) is reflected in the call
35 // to makeArray(i). See the dbRecord() function, above, for the
36 // meaning of the four parameters in each array entry.