title: how to change color dynamically
body: <p>I want to change my marquee color
  Here is Html code</p>
  
  <pre><code>&lt;marquee&gt;&lt;div id="thakan"&gt;Thakaan ka Ant, Shakti Turant!!&lt;/div&gt;&lt;/marquee&gt;
  </code></pre>
  
  <p>And this is the javascript code</p>
  
  <pre><code>&lt;script language="javascript" type="text/javascript"&gt;
  var col=0;
  function changeMarqueeColor()
  {
      if(col==0)
      {
          //document.getElementById("p2").style.color="blue";
          documrnt.getElementById("thakan").style.color="yello";
          col=1;
      }
      else
      {
          documrnt.getElementById("thakan").style.color="blue";
          col=0;
      }
  
  }
   b=setInterval("changeMarqueeColor();",500);
  &lt;/script&gt;
  </code></pre>
  
  <p>You can access this also by visiting this link : <a href="http://jsfiddle.net/W4tzf/" rel="nofollow">http://jsfiddle.net/W4tzf/</a></p>