<p>I have a menu that I am using and it will change the background color when I hover using <code>a:hover</code> but I want to know how to change the <code>class=line</code> so that it sticks.  </p>

<p>So from the home if they click contacts the home pages </p>

<blockquote>
  <p>from (a href="#" class="clr") to (a href="#")</p>
</blockquote>

<p>and Contacts would change  </p>

<blockquote>
  <p>from (a href="#") to (a href="#" class="clr")</p>
</blockquote>

<p>any help?</p>

<p>JD</p>

The way to change class (I assume you're talking of the DOM), in javascript is:
```
```
document.getElementById("element").className='myClass';
```
```
Hope this helps.