alright, I fixed that and the menu renders....
but the onMouseover events don't work! am I doing something wrong?
$linkarray = array(
"Home" => "index.php",
"Issues" => "issues.php",
"Biography" => "bio.php",
"Voter Information" => "voter.php",
"Contact" => "contactus.php"
);
$width = '150';
$align = '60';
$tstyle = "text-align: center;
background-color: #FFFFFF;
border: 2px solid #cccccc;
topborder: 3px solid #cccccc;";
$mouseover = "onMouseover=\"this.style.background=\'#ffffff'\';";";";
$mouseout = "onMouseout=\"this.style.background=\'#ffffff'\';";";";
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 ".$mouseover." ".$mouseout." style=\"".$tstyle."\" width=\"".$width."\"><a href=\"".$link."\" style=\"".$style."\" left-margin=\"".$align."\">".$key."</a></td>";
}
thanks.