| 4 |  |  | 
| 5 | $page = new HTMLPageClass("test.php"); | $page = new HTMLPageClass("test.php"); | 
| 6 |  |  | 
| 7 |  | $page->add_css_link( "/phphtmllib/css/bluetheme.php" ); | 
| 8 |  |  | 
| 9 | $nav = new TextNav( 760 ); | $nav = new TextNav( 760 ); | 
| 10 |  |  | 
| 11 | //get the link to the widget's css file. | //get the link to the widget's css file. | 
|  | $page->push_css_link( $nav->get_css_file() ); |  | 
| 12 |  |  | 
| 13 | $nav->push("http://www.cnn.com", "Home", 80); | $nav->add("http://www.cnn.com", "Home", 80); | 
| 14 | $nav->push("http://www.cnn.com", "Mailing List", 94); | $nav->add("http://www.cnn.com", "Mailing List", 94); | 
| 15 | $nav->push("http://www.cnn.com", "News Headlines", 120); | $nav->add("http://www.cnn.com", "News Headlines", 120); | 
| 16 | $nav->push("http://www.cnn.com", "Top Fifty", 98); | $nav->add("http://www.cnn.com", "Top Fifty", 98); | 
| 17 | $nav->push("http://www.cnn.com", "The Fifty Monthly", 100); | $nav->add("http://www.cnn.com", "The Fifty Monthly", 100); | 
| 18 | $nav->push("http://www.cnn.com", "The Essentials", 94); | $nav->add("http://www.cnn.com", "The Essentials", 94); | 
| 19 | $nav->push("http://www.cnn.com", "Gear's Choice", 94); | $nav->add("http://www.cnn.com", "Gear's Choice", 94); | 
| 20 | $nav->push("http://www.cnn.com", "Contact Us", 94); | $nav->add("http://www.cnn.com", "Contact Us", 94); | 
| 21 |  |  | 
| 22 | $page->push( $nav, html_br() ); | $page->add( $nav, html_br() ); | 
| 23 |  |  | 
| 24 | $nav = new TextNav( 200 ); | $nav = new TextNav( 200 ); | 
| 25 |  |  | 
| 26 | $nav->push("http://www.slashdot.org", "Slashdot", 100); | $nav->add("http://www.slashdot.org", "Slashdot", 100); | 
| 27 | $nav->push("http://www.freshmeat.net", "Freshmeat", 100); | $nav->add("http://www.freshmeat.net", "Freshmeat", 100); | 
| 28 |  |  | 
| 29 | $page->push( $nav, html_br() ); | $page->add( $nav, html_br() ); | 
| 30 |  |  | 
| 31 |  |  | 
| 32 | print $page->render(); | print $page->render(); |