[thelist] Tabbed Menu Recommendations
Chris W. Parker
cparker at swatgear.com
Wed Jul 9 19:54:53 CDT 2003
Burhan Khalid <mailto:thelist at meidomus.com> wrote:
> Wanted to get some opinions on tabbed menus. I am considering
> implementing them for a client website, but I am having trouble
> finding one that works as desired on most of the popular browsers.
[snip]
First of all, by "tab" do you mean a menu that looks like file folder tabs or something a little fancier? If the former, that's easy.
How about this?
.active {
background: red;
}
<?
$home_tab = "";
$aboutus_tab = "";
switch ($_GET['section'])
{
case 'home':
$home_tab = " class=\"active\"";
break;
case 'aboutus':
$aboutus_tab = " class=\"active\"";
break;
}
echo "<span".$home_tab.">"
."<a href=\"index.php?section=home\">HOME</a>"
."</span>";
echo "<span".$aboutus_tab.">"
."<a href=\"index.php?section=aboutus\">ABOUT US</a>"
."</span>";
?>
That should do it.
Chris.
More information about the thelist
mailing list