Posted by Jim Moe on 06/22/06 17:37
Florida Flamingo wrote:
> What exactly does using A:active do vs the others:
>
> : link
> : hover
> : visited
>
a:active is the state a link becomes when it is activated (clicked). The
state is usually rather brief since it becomes a:visited when the new link
loads.
> I have a global menu bar at the top of each page. I am looking for the
> ability to change the color of the link in the global tool bar to a
> different color if I am actual viewing that page.
>
Using a scripting language like PHP makes this type of work much easier.
(It could be done with Javascript but not everyone has it enabled.)
Create a function that outputs the menu code. The function's parameter
list tells it which menu item to not be a link, instead giving it the
style for "this page."
> EX: Global tool page included a link to the news page. It is colored black
> like all the othe links listed in the global tool page. Once you have
> navigated to the news page, the link for that page has now changed to red in
> the global tool bar. I thought that was what A: active link is used for but
> I think I am wrong.
>
The closest you can get with CSS is a:visited, but it is not unique. If
you set it to red, all the other visited links are red as well.
--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
[Back to original message]
|