<html>
<head>
   <script>
   function blink() {
      var f = document.getElementById('Foo');
      setInterval(function() {
         f.style.display = (f.style.display == 'none' ? '' : 'none');
      }, 1000);
   }


</script>
</head>
<body onload="blink();">

<div id="Foo" >news</div>

</body>
</html>

hi I have the code for blinking the text but i need to change the color of the text plz help me to change my blinking text....my code is

ruchi

<div id="Foo" style='color:red;background-color:black'>news</div>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.