Location: PHPKode > projects > easydialup > easydialup/include/animation.php
"
<script language="JavaScript" src="simmodal.js"></script>
<table class="stdTable" border="0" cellspacing="1" cellpadding="2" width="100%">

 <tbody>
    <td class="stdRow">
     <table class="stdTable" >
     <tr>
      <td class="stdRow">
       <div style="font-size:8pt;padding:2px;border:solid black 1px">
        <span id="progress1">&nbsp;&nbsp;&nbsp;&nbsp;</span>
        <span id="progress2">&nbsp;&nbsp;&nbsp;&nbsp;</span>
        <span id="progress3">&nbsp;&nbsp;&nbsp;&nbsp;</span>
        <span id="progress4">&nbsp;&nbsp;&nbsp;&nbsp;</span>
        <span id="progress5">&nbsp;&nbsp;&nbsp;&nbsp;</span>
        <span id="progress6">&nbsp;&nbsp;&nbsp;&nbsp;</span>
        <span id="progress7">&nbsp;&nbsp;&nbsp;&nbsp;</span>
        <span id="progress8">&nbsp;&nbsp;&nbsp;&nbsp;</span>
        <span id="progress9">&nbsp;&nbsp;&nbsp;&nbsp;</span>
       </div>
      </td>
     </tr>
     </table>
 </tbody>


<script type="text/javascript">
 var progressEnd = 9;		 // set to number of progress <span>'s.
 var progressColor = 'blue'; // set to progress bar color
 var progressInterval = 75;	 // set to time between updates (milli-seconds)

 var progressAt = progressEnd;
 var progressTimer;
 function progress_clear() {
	for (var i = 1; i <= progressEnd; i++) document.getElementById('progress'+i).style.backgroundColor = 'transparent';
	progressAt = 0;
 }
 function progress_update() {
   progressAt++;
     if (progressAt > progressEnd){
       progress_clear();
     }
     else {
       document.getElementById('progress'+progressAt).style.backgroundColor = progressColor;
       if(progressAt>1) {
         document.getElementById('progress'+(progressAt-1)).style.backgroundColor = 'transparent';
       }
     }
     progressTimer = setTimeout('progress_update()',progressInterval);
 }
function progress_stop() {
  clearTimeout(progressTimer);
  progress_clear();
}
progress_update();		// start progress bar
</script>


"
Return current item: easydialup