cmw000
07-01-2005, 04:56 AM
Hello. I have several problems which all stem from one central design feature: dynamic content.
I want my left-hand navigation links to change color according to the page I'm on. But since I'm using dynamic content, I don't know how to change it because the links are always on the same page. If some smart person could please tell me how to pass another argument to my function so as to accomplish this, I would be most appreciative.
Here is my code:
<script type="text/javascript">
<!--
function show_me(b3, b2){
document.getElementById("box3").innerHTML=document.getElementById(b3).innerHTML
document.getElementById("box2").innerHTML=document.getElementById(b2).innerHTML
}
//-->
</script>
<div id="box1">
<a href="#null" onclick="show_me('contact', 'quote1')" title="">TESTIMONIALS</a>
....and so on.
I want my left-hand navigation links to change color according to the page I'm on. But since I'm using dynamic content, I don't know how to change it because the links are always on the same page. If some smart person could please tell me how to pass another argument to my function so as to accomplish this, I would be most appreciative.
Here is my code:
<script type="text/javascript">
<!--
function show_me(b3, b2){
document.getElementById("box3").innerHTML=document.getElementById(b3).innerHTML
document.getElementById("box2").innerHTML=document.getElementById(b2).innerHTML
}
//-->
</script>
<div id="box1">
<a href="#null" onclick="show_me('contact', 'quote1')" title="">TESTIMONIALS</a>
....and so on.