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