Basic Menu Question

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I'm sorry if this question is so basic that it's bordering on inane.

I'm trying to do a simple menu system where the links light up when you
mouse over, which I've accomplished quite nicely with CSS. What I can't
figure out is how do I get the link for the current page that's being viewed
to stay highlighted? You know, so that people can look at the menu and see
what page they're on.  I thought it was a:active, but apparently it's not
since I can't get that to work. I'm only testing on
IE 6.

Q 2. Same question, different technique: When using roll over images for the
menu, how do you select which image will show on the active page? Again, I'm
using IE6


Re: Basic Menu Question

In our last episode,
the lovely and talented Lisbeth952
broadcast on comp.infosystems.www.authoring.html:

Quoted text here. Click to load it

a:active means the link you actually clicking on that moment,
not the current page.

They way to do what you want to do is to throw the link for the
current page into a different class.  Usually this class is
grayed the link, but you want it lit up; the principle is the
same.  Ordinarily you do this with a prepossessor that compares
links with the url of the current page and writes a different
class name when they match.  You can, of course, do this by
changing the menu manually on every page.

Quoted text here. Click to load it

Pretty much the same way.

Lars Eighner      /
         I don't see posts from or threads started from googlegroups.
               War on Terrorism: Treat Readers like Mushrooms
 "If the story needs rewriting to play down the civilian casualties, DO IT."
                   -Memo, _Panama City_ (FL) _News Herald_

Re: Basic Menu Question

Thank you Lars, that makes perfect sense!

Quoted text here. Click to load it

Site Timeline