--- nfo/php/libs/com.newsblob.phphtmllib/test/test8.php 2003/02/22 21:08:19 1.2
+++ nfo/php/libs/com.newsblob.phphtmllib/test/test8.php 2003/09/19 22:49:58 1.3
@@ -4,27 +4,29 @@
$page = new HTMLPageClass("test.php");
+$page->add_css_link( "/phphtmllib/css/bluetheme.php" );
+
$nav = new TextNav( 760 );
//get the link to the widget's css file.
-$nav->push("http://www.cnn.com", "Home", 80);
-$nav->push("http://www.cnn.com", "Mailing List", 94);
-$nav->push("http://www.cnn.com", "News Headlines", 120);
-$nav->push("http://www.cnn.com", "Top Fifty", 98);
-$nav->push("http://www.cnn.com", "The Fifty Monthly", 100);
-$nav->push("http://www.cnn.com", "The Essentials", 94);
-$nav->push("http://www.cnn.com", "Gear's Choice", 94);
-$nav->push("http://www.cnn.com", "Contact Us", 94);
+$nav->add("http://www.cnn.com", "Home", 80);
+$nav->add("http://www.cnn.com", "Mailing List", 94);
+$nav->add("http://www.cnn.com", "News Headlines", 120);
+$nav->add("http://www.cnn.com", "Top Fifty", 98);
+$nav->add("http://www.cnn.com", "The Fifty Monthly", 100);
+$nav->add("http://www.cnn.com", "The Essentials", 94);
+$nav->add("http://www.cnn.com", "Gear's Choice", 94);
+$nav->add("http://www.cnn.com", "Contact Us", 94);
-$page->push( $nav, html_br() );
+$page->add( $nav, html_br() );
$nav = new TextNav( 200 );
-$nav->push("http://www.slashdot.org", "Slashdot", 100);
-$nav->push("http://www.freshmeat.net", "Freshmeat", 100);
+$nav->add("http://www.slashdot.org", "Slashdot", 100);
+$nav->add("http://www.freshmeat.net", "Freshmeat", 100);
-$page->push( $nav, html_br() );
+$page->add( $nav, html_br() );
print $page->render();