Blink Tag

Ended up wondering what it would take to create the blink tag in jQuery.  It was pretty easy, but the big catch is that $(this).is(“:visible”) is really checking “display == none”.

That said, here’s the code.

<p>test <span class="blink">HIHIHI</span> of blink</p>
<p>test <span class="blink">HIHIHI</span> of blink</p>

<script>
setInterval(function() {
   $('.blink').each(function() {
     $(this).css('visibility',
         $(this).css("visibility") == 'hidden' ? '' : 'hidden'); });
   }, 500);
</script>