<span onclick="chcolor()" id=spanname>test</span>
<script language="JavaScript">
<!--
var timer
var step=0
function chcolor()
{
clearTimeout(timer)
step++ 
if (step==3) {step=1} 
if (step==1) {spanname.style.color = "red"} 
if (step==2) {spanname.style.color = "black"} 
timer=setTimeout("chcolor()",1000);      
}
//-->
</script>