This raw script will assign a red color to the link of the selected section, by looking what the $id is (index.php?id=main; the link to the main section will be red) example at www.uniondead.com
<?
//main
if($id == "") { $main = "6A0000"; } elseif($id == "main") { $main = "6A0000"; } else { $main = "555"; }
//news
if($id == "news") { $news = "6A0000"; } else { $news = "555"; }
//bios
if($id == "bios") { $bios = "6A0000"; } else { $bios = "555"; }
//papers
if($id == "articles") { $articles = "6A0000"; } else { $articles = "555"; }
//poll
if($target == "poll/vote.php") { $poll = "6A0000"; } else { $poll = "555"; }
//guestbook
if($id == "guestbook") { $guestbook = "6A0000"; } else { $guestbook = "555"; }
//about
if($id == "about") { $about = "6A0000"; } else { $about = "555"; }
//gallery
if($id == "gallery") { $gallery = "6A0000"; } else { $gallery = "555"; }
//shows
if($id == "shows") { $shows = "6A0000"; } else { $shows = "555"; }
//links
if($target == "links/index.php") { $links = "6A0000"; } else { $links = "555"; }
//misc
if($id == "misc") { $misc = "6A0000"; } else { $misc = "555"; }
?>
Then i insert <? echo $main ?> (<? echo $news ?> etc) for each link color.
else { $misc = "555"; } makes it so if this section is not selected, the link will be 555, and not default link color which is speicified in css style sheet.
Is there a way to simplify this script?