A
Andrea
Hi everyone. I'm working on a navigation menu (in a frameset) that I
want to set the "active" link to black (the link that corresponds to
the page displayed in the right side of the frame) to black.
http://www.personal.psu.edu/axg251/wc
In the original external style sheet, I set the a:link, a:visited,
a:active, and a:hover. That works fine.
In the navigation page, I call a function for onclick - it sets the
link just clicked to black:
document.getElementById(id).style.color="black";
AND sets the link that was black back to the original color:
document.getElementById(oldclass).style.color="#394B8E";
The problem is then I lose the "hover" feature. I've tried instead of
setting the "color" in the function actually setting "a:link.color",
"a:visited.color", etc. (for link, visited, active, and hover) but it
doesn't work AND I read in this ng that you can't use a javascript
function to change a pseudo class. Is that true?
Here's the site: http://www.personal.psu.edu/axg251/wc
Note that the "hover" works until you've clicked on the link - then
it no longer works.
Any ideas are appreciated. I'm happy to post all the code here - I
thought it would be easier for you to just look from the site - if
not, just let me know.
Thanks for your help!
Andrea
p.s. It's a test site - I *know* it's ugly! ;-)
want to set the "active" link to black (the link that corresponds to
the page displayed in the right side of the frame) to black.
http://www.personal.psu.edu/axg251/wc
In the original external style sheet, I set the a:link, a:visited,
a:active, and a:hover. That works fine.
In the navigation page, I call a function for onclick - it sets the
link just clicked to black:
document.getElementById(id).style.color="black";
AND sets the link that was black back to the original color:
document.getElementById(oldclass).style.color="#394B8E";
The problem is then I lose the "hover" feature. I've tried instead of
setting the "color" in the function actually setting "a:link.color",
"a:visited.color", etc. (for link, visited, active, and hover) but it
doesn't work AND I read in this ng that you can't use a javascript
function to change a pseudo class. Is that true?
Here's the site: http://www.personal.psu.edu/axg251/wc
Note that the "hover" works until you've clicked on the link - then
it no longer works.
Any ideas are appreciated. I'm happy to post all the code here - I
thought it would be easier for you to just look from the site - if
not, just let me know.
Thanks for your help!
Andrea
p.s. It's a test site - I *know* it's ugly! ;-)