<html>
<head>
<script type="text/javascript">
function blinkmypara()
{
if (!document.getElementById('p1').style.color)
{
document.getElementById('p1').style.color="red";
}
if (document.getElementById('p1').style.color=="red")
{
document.getElementById('p1').style.color="green";
}
else
{
document.getElementById('p1').style.color="red";
}
if (document.getElementById('p1').style.color=="green")
{
document.getElementById('p1').style.color="blue";
}
else
{
document.getElementById('p1').style.color="red";
}
timer=setTimeout("blinkmypara()",200);
}
function stoptimer()
{
clearTimeout(timer);
}
</script>
</head>
<body onload="blinkmypara()" onunload="stoptimer()">
<p id="p1">Mahak</p>
</body>
</html>