Posted By

limepix on 10/01/10


Tagged

javascript Dojo


Versions (?)

dojo.blink


 / Published in: JavaScript
 

  1. dojo.require("dojo.fx");
  2.  
  3. function blink(node, count){
  4. var effects = new Array();
  5.  
  6. var hide = dojo.fadeOut({node: node});
  7. var show = dojo.fadeIn({node: node});
  8.  
  9. for(var i = 0; i < count; i++){
  10. effects.push(hide);
  11. effects.push(show);
  12. }
  13.  
  14. dojo.fx.chain(effects).play()
  15. }
  16.  

Report this snippet  

You need to login to post a comment.