Steve Easton
4/27/2004 9:38:00 PM
Peter,
There's a way to make the link change when clicked, and stay in that state until
another is clicked.
It's done using an active state in a style section.
Paste this in the head section of your page. Adjust colors and text decoration
as desired.
<style type="text/css">
a{
text-decoration: none;
}
a:link {
background-color: transparent;
color: #0000FF;
text-decoration: underline;
}
a:visited {
background-color: transparent;
color: teal;
text-decoration: none;
}
a:active{
background-color: transparent;
color: red;
text-decoration: none;
}
a:hover {
background-color: transparent;
color: #FF0000;
text-decoration: underline;
}
</style>
--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
"Peter Aitken" <paitken@CRAPnc.rr.com> wrote in message
news:u4gkphJLEHA.340@TK2MSFTNGP11.phx.gbl...
> "Steve Easton" <admin@95isalive.com> wrote in message
> news:%23DRmvaJLEHA.3056@TK2MSFTNGP12.phx.gbl...
> > She did, and she answered it.
> >
> > add: body alink=#009900 to the opening body tag of your page. change the
> color
> > to one you want.
> >
>
> My apologies - it does work. Not well, however, because the specified color
> takes effect only after the mouse is moved off the link.
>
> In any case I was hoping to change the text itself. For example when Link1
> is active:
>
> >>>Link 1
> Link 2
>
> And when link 2 is active:
>
> Link 1
> >>>Link 2
>
> I though perhaps I could use the onclick event to change the innerText
> property of the element but I don't know enough details to figure it out.
> Mebbe it's time to buy a Javascript book!
>
> Peter Aitken
>
>