Javascript help (unless there's another way!)

M

MaineBoy

Hi! Hope someone out there can give this JavaScript newbie a hand.

The site in question is at http://www.sufumaine.org

All pages are launched from the home page, and the table there within.

The issue is that the client wants only the last link visited to be in
the "visited" color (yellowish)

The site functions now except that, unless if you refresh the home page,
all of the visited "links" (they're actually text with frontpage
behavoirs applied) remain in the "visited" color.

I thought perhaps a refresh() might do it, I tried various ways of
changing ALL of the text on a page back to green before changing the
individual item to its new color. I just can't seem to get it.

I'd be interested in the "right way" to do this in the long term, if
there is something fundamental I have overlooked.

More pressing now is a way to fix what's there.

All help is greatfully appreciated.

Thanks to all in advance.

MaineBoy
 
S

Steve Easton

Use css and apply the color you want via the a:active and a:visited selectors.

Make active yellow, and set visited to the same color as an unvisited link.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
T

Thomas A. Rowe

Sorry that is a function control by a user browser, you need to explain to your client that you can
not just set the color of the "last" visited link, as there is no such function in the HTML Specs to
single out a single link as the last one visited.

If you are very knowledgeable with server-side scripting (ASP, ASP.net, PHP, CFM, etc.), this might
be possible to then change the color of a link after it was visited, however it would be a lot of
coding to accomplish.

The best you can do is to set the visited link color to the same color as the link color.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
K

Kevin Spencer

If you are very knowledgeable with server-side scripting (ASP, ASP.net,
PHP, CFM, etc.), this might
be possible to then change the color of a link after it was visited, however it would be a lot of
coding to accomplish.

I might add that, if you do this, people in general aren't going to know
what to make of it, since this is NOT the default behavior of ANY browser.
It's best to let the browser handle this in the way it was designed, to
avoid confusion (and dissatisfaction) among your users.

It might be a good idea to educate your client regarding this issue. You
are, after all, a consultant. If your client is bullheaded, go ahead and do
it his way. But he depends upon you (or should) for your expertise.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Top