<style> 
#flt 
{ 
   FILTER:PROGID:DXIMAGETRANSFORM.MICROSOFT.WAVE 
   ( 
   strength = 5, 
   freq = 1, 
   lightstrength = 20, 
   add = 0, 
   phase = 0 
   ); 

   width: 150px; 
   height: 150px; 
   text-align: center; 
   color: #fff; 
   font-Family: Corier New; 
   font-size: 50px; 
   background-color: silver; 
} 
</style> 

<div id="flt"><br>BG</div> 

<script type='text/javascript'> 
   var d = document.getElementById('flt'); 
   var i = 0; 

function flag() 
{ 
   if (i == 100) i = 0; 

   d.filters[0].phase = ++i; 
   setTimeout("flag()",3); 
} 

flag();
</script>
Published in: JavaScript
Download

Related snippets