If your not using iframes, you could just create the pages with the menu already like that. For example, page one is 1 0 0 0 (where 1 is red and 0 is black), page two is 0 1 0 0, etc.
Otherwise, you need to do a little more work. The JavaScript shouldn't be too tricky if I understand this correctly. Probably something like:
Code:
<script type="text/javascript">
var red = "one";
function change(id){
if(id != red){
document.getElementById(id).style.backgroundColor = "red";
document.getElementById(red).style.backgroundColor = "black";
red = id;
}
}
</script>
<a href="" id="one" onclick="change(this)">Click Me</a>
<a href="" id="two" onclick="change(this)">Click Me</a>
<a href="" id="three" onclick="change(this)">Click Me</a>
I don't know if that code works, but what you need is something along those lines.
Bookmarks