newcomsas (AT) hotmail (DOT) com wrote:
Quote:
UL.menu1 LI A:active{
BACKGROUND: yellow; COLOR: black
Naturally, having acted on the A:active property, when a link is
clicked, all the others lose the yellow background. |
Of course. :active means "While the mouse button is depressed while over the
link", although Internet Explorer is a bit buggy here IIRC.
The user can hardly be clicking on multiple links at the same time.
Quote:
The fact is that my page have to reload frequently. The effect I'd like
to obtain is that, when the page reloads, the link that was 'active'
before reloading continued to show the yellow background. |
Sounds like you want :target, not :active. Of course :target is only a CSS 3
proposal at present, so browser support is really weak.
http://dorward.me.uk/software/frag/ is a JavaScript that has a similar
effect.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is