title: setAttribute doesn't work in IE6
body: <p>how to set element attribute with javascript in IE6..? It seems <code>setAttribute</code> doesn't work. I really need to do it on the fly. Thanks.</p>
  
  <p><strong><em>Code</em></strong></p>
  
  <pre><code>&lt;script type="text/javascript" language="javascript"&gt; 
      menuItems = document.getElementById("menu").childNodes; 
      for (i = 0; i &lt; menuItems.length; i++)
      { 
          if (menuItems[i].className != "blue") 
              menuItems[i].setAttribute('onmouseover', 'HoverMenu(this)'); 
      } 
  &lt;/script&gt;
  </code></pre>