Thursday, August 11th, 2011

<script type="text/javascript">
function addBlink() { 	
   var blinks = document.getElementsByTagName("blink");
   var timeoutLength = 300;

   var blink = function () {
      for (var i = 0; i < blinks.length; i++) { 
         var b = blinks[i];
         b.style.visibility = (b.style.visibility === "visible" ? "hidden" : "visible");
      }

      setTimeout(blink, timeoutLength);
   }

   if (blinks.length > 0)
      setTimeout(blink, timeoutLength);
};

window.onload = addBlink;
</script>

Offered without comment except to note that there’s no reason to expect this to work on non-modern browsers. I don’t have that kind of time.

blog comments powered by Disqus