why?!
here is the code...
<?php
$currentpage = basename($_SERVER['PATH_TRANSLATED']);
$banner = '/edwards2/images/topbanner3.jpg';
$bwidth = '800';
echo "<img src=\"".$banner."\" width=\"".$bwidth."\">";
$linkarray = array(
"Home" => "index.php",
"Issues" => "issues.php",
"Biography" => "bio.php",
"Voter Information" => "voter.php",
"Contact" => "contactus.php"
);
$width = '150';
$align = '60';
foreach ($linkarray as $key => $link) {
if ($currentpage == $link) {
$style = "text-align: center;
color: #000000;";
} else {
$style = "text-align: center;
color: #003399;
left-margin: 24px;";
}
echo "<td width=\"".$width."\"><a href=\"".$link."\" style=\"".$style."\" left-margin=\"".$align."\">".$key."</a></td>";
}
?>
yes there are things in there that are useless... im just so pissed right now its not worth it to remove them.
Basicly, what i need to do is make it so that the links are centered in their little boxes underneath my banner. The boxes line up w/ the banner and the links remain at the left, no matter what I try. Furthermore, how do I get the background in each box to change on mouse over? I can make the background of the text change color, but not the inside of the boxes.
Thanks in advance.