title: Selecting a HTML link causing CSS elements to change colours?
body: <p>Is there a way (possibly using Javascript?) of changing CSS element details when a User clicks an HTML link?</p>
  
  <p>My aim here is to grey out a series of links defined as:</p>
  
  <pre><code>&lt;a href="#" title="MyLink"&gt;&lt;span&gt;Link&lt;/span&gt;&lt;/a&gt;
  </code></pre>
  
  <p>and a class defined as:</p>
  
  <pre><code>.Document
  {
      background:#000;
  }
  </code></pre>
  
  <p>What I am after is, when the User clicks MyLink, I would like the Document class to change its background to something else.... say #CCC. I would also like it to revert back to its original state when another link is selected e.g. MyLink2.</p>
  
  <p>Is this even possible? If so does anyone know where to look for at least the beginnings of a solution?</p>