Jump to content

trying to accomplish this..


desjardins2010

Recommended Posts

hello I have a simple script for a progression bar the only thing I want to add to this is that when the image reaches the 400 and the progress bar stops to foward to a new link.. I tried several things without luck anyone can help?

 

<script type="text/javascript"> 
  function progress() { 
   if (document.images["bar"].width < 400) { 
    document.images["bar"].width += 5; 
    document.images["bar"].height = 5; 
   }    
else { 
    clearInterval(ID); 
   
   
  } 
  
var ID; 
window.onload = function() { 
  ID = setInterval("progress();", 500); 
} 
</script>

 

 

Link to comment
https://forums.phpfreaks.com/topic/222423-trying-to-accomplish-this/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.