Monday, June 1, 2009

Blink text in IE

Its very easy to blink text in Firefox/Mozilla by simply assigning text-decoration:blink in the style of the container.

But Interner Explorer (IE) does not supports this property, so here is a trick to blink text in IE

<style type="text/css">
.blink{
visibility: expression((Math.floor(new Date().getTime()/500)%2 ) ? "visible":"hidden");}
</style>

<script type="text/javascript">
setInterval("document.recalc()",1);
</script>


Cheers

No comments: