Hello everybody !!!
What I want to do might seem a bit odd. Here it is :
I’m making a website, and I’m using frames. On the left, I have my navigation menu, which consists of a series of links in a table. vers simple, indeed.
What I want to to, is have the link change color when the page corresponding to it is loaded in the mainFrame.
Like, if I click on the link “works”, I want the page works.htm to load into the mainFrame ( obviously ), but I also want the word Works in the linklist to become red instead of black, indicating which page the user is currently browsing.
I thought I could do it with a simple CSS, giving the red color to my a:active, but when I click elsewhere, the link loses its red color and becomes black again.
Here’s what I’ve found so far :
I was planning to make a Js function, which would color the link when the user clicks on it ( like a document.getElementById(“the element id”).style.color=”red”; and attributing an Id to the corresponding element ) but then, I noticed something… If the user clicks on the link “Works”, this one will become red, okay, but then , what happens when he clicks on another link, like “People” ? “People” will become red, but “Works” will stay red too…
I’m lost…
If you could help me, I would be eternally gratefull !!!!
I’m really a total beginner in Javascript, but I tried to search a bit on my own before begging for help… ?
NesS