Ask a Question related to PHP Development, Design and Development.
-
Zink #1
Tabs menu in php/css
Hi everyone, I am trying to put a tabs menu on my php site. My goal is
having a link change color when clicked, and staying that way until the user
stays in the section of the site it links to.
I was thinking about using CSS and the A:active tag, but the link changes
color only while clicking on it, and then goes back to it's default color
when the linked section is open.
Can anyone help me? I am sure there is a php command for this, or a right
way to do it in CSS.
Zink Guest
-
Horizontal Menu Controls - TABS
In the "TimeTracker" ASP.NET Starter Kit is a horizontal Menu control or TAB strip that I want to use in my current project. Ive been able to use... -
ID3: Cannot set tabs
I have a text block that won't let me set tabs with the mouse. I can type a location for a tab, and the tab appears on the ruler (in gray, not... -
TABS in ASP .Net
Hi I am new to ASP .Net, I have seen some where in microsoft website they are using TABS in .aspx pages. Where I can find and use in my ASP... -
Tabs
> I was curious to see if some sites such as http://www.apple.com auto generate their tabs through programming. Most sites like that server their... -
Top TABS
I use to have TOP TABS on the top of the Screen where I choose the shortcuts, like if I wanna put some text on remarks, I select the text and then... -
Peter Akrill #2
Re: Tabs menu in php/css
What about using the code
list($temp, $rootdir) = split('[/]', $_SERVER['PHP_SELF']);
if ($rootdir == 'news' )
{
<a href='link' class='selected'>Link</a>
}
else
{
<a href='link' class='unselected'>Link</a>
}
And then you'll need to define in your CSS
the unselected for both a:visited and normal a
Hope that helps, obviously you would need to repeat that code for each of
your links. Its what I've done with the menu system on my site.
"Zink" <joman@zibi.com> wrote in message
news:AUl_c.14212$G36.7158@tornado.fastwebnet.it...user> Hi everyone, I am trying to put a tabs menu on my php site. My goal is
> having a link change color when clicked, and staying that way until the> stays in the section of the site it links to.
> I was thinking about using CSS and the A:active tag, but the link changes
> color only while clicking on it, and then goes back to it's default color
> when the linked section is open.
> Can anyone help me? I am sure there is a php command for this, or a right
> way to do it in CSS.
>
>
Peter Akrill Guest
-
Andy Barfield #3
Re: Tabs menu in php/css
Zink wrote:
IIRC the order of the link status is important in the css - try setting> Hi everyone, I am trying to put a tabs menu on my php site. My goal is
> having a link change color when clicked, and staying that way until the user
> stays in the section of the site it links to.
> I was thinking about using CSS and the A:active tag, but the link changes
> color only while clicking on it, and then goes back to it's default color
> when the linked section is open.
> Can anyone help me? I am sure there is a php command for this, or a right
> way to do it in CSS.
the order to:
a:link
a:visted
a:hover
a:active
Regards,
Andy
Andy Barfield Guest
-



Reply With Quote

