Blink Text
May 17th, 2005 by Intermanaut
Flashing text is crap. Don’t do it.
This code needs a <div> to contain the text you want to flash, and is called in the ‘onLoad’ event of the <body> tag with something like <body onLoad=”Blink(’LayerName’);”>
<script type=”text/javascript”>
<!–
function Blink(BlinkID)
{
BlinkLayer = document.getElementById(BlinkID);if (BlinkLayer.style.color==\’#880000\’ || BlinkLayer.style.color==\’rgb(136, 0, 0)\’ || BlinkLayer.style.color==\’rgb(136,0,0)\’)
BlinkLayer.style.color=\’#000088\’;
else
BlinkLayer.style.color=\’#880000\’;
setTimeout(\’Blink(\\’\’ + BlinkID + \’\\’)\’,500);
}–>
</script>