Hmm... after thinking it over, I decided to actually post one here. Here's an easy PHP implementation of it:
Code:
<?php
$main_headers = array("My Site","Dynamic Drive","Header 3","Header 4");
$sub_headers = array();
$sub_headers[0] = array("Homepage","Scripts","Resources");
$sub_headers[1] = array("Homepage","New Scripts","Tools","Forum","CSS Library");
$sub_headers[2] = array("Sub 1-3","Sub 2-3","Sub 3-3","MySub 1","MySub 2");
$sub_headers[3] = array("Sub 1-3","Sub 2-3","Sub 3-3","MySub 1","MySub 2");
$sub_links = array();
$sub_links[0] = array("http://mburt.mb.funpic.org/?p=home","http://mburt.mb.funpic.org/?p=scripts","http://mburt.mb.funpic.org/?p=resources");
$sub_links[1] = array("http://www.dynamicdrive.com/","http://www.dynamicdrive.com/new.htm","http://tools.dynamicdrive.com/","http://www.dynamicdrive.com/forums/","http://www.dynamicdrive.com/style/");
$sub_links[2] = array();
$sub_links[3] = array();
$htmlc = "";
for ($i = 0;$i < count($main_headers);$i++) {
$htmlc .= "<h1>$main_headers[$i]</h1>\n";
for ($a = 0;$a < count($sub_headers[$i]);$a++) {
$htmlc .= "<a href=\"".$sub_links[$i][$a]."\">".$sub_headers[$i][$a]."</a>\n<br>";
}
}
echo $htmlc;
?>
See result here: http://mburt.mb.funpic.org/testing/toctest.php
Bookmarks