Your Ad Here

Posted By

krisdb on 03/09/07


Tagged

javascript


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

vali29


loading dots


 / Published in: JavaScript
 

  1. <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
  2. <!--
  3. function showProgressDots(numberOfDots) {
  4.  
  5. var progress = document.getElementById('progressDots');
  6.  
  7. switch(numberOfDots) {
  8. case 1:
  9. progress.innerHTML = '.';
  10. timerHandle = setTimeout('showProgressDots(2)',200);
  11. break;
  12. case 2:
  13. progress.innerHTML = '..';
  14. timerHandle = setTimeout('showProgressDots(3)',200);
  15. break;
  16. case 3:
  17. progress.innerHTML = '...';
  18. timerHandle = setTimeout('showProgressDots(1)',200);
  19. break;
  20. }
  21. }
  22. window.setTimeout('showProgressDots(1)',100);
  23. //-->
  24. </SCRIPT>
  25. Loading<span id="progressDots" style="position:absolute;"></span>

Report this snippet  

You need to login to post a comment.