I have a list of links - not a menu bar - as in
<div align="right"><a href="me1.cfm?pic_ws=80&typ=1" target="mnfrm3">ME1</A></div><br>
<div align="right"><a href="me2.cfm?pic_ws=80&typ=1" target="mnfrm3">ME2</A></div><br>
<div align="right"><a href="me3.cfm?pic_ws=80&typ=1" target="mnfrm3">ME3</A></div><br>
and use the standard css
a {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #C65B05;
}
a:hover {
text-decoration: none;
color: #03B003;
}
what I would like to do is have the link selected to stay the hover color until a different link is clicked on in the same window. (page contains iframes but this is top page so i don't want the state to change if a link is clicked on in iframe)
HTML: (Added
onclick="clickSingleA(this)"
andclass="single"
attributes.)To have one of the links activated by default, just add
active
classCSS: (added a.active)
JavaScript: (function to activate links, and remove old active)