desjardins2010 Posted December 22, 2010 Share Posted December 22, 2010 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 More sharing options...
requinix Posted December 22, 2010 Share Posted December 22, 2010 else { clearInterval(ID); } Stick your code in there. The document.location object is your friend. Link to comment https://forums.phpfreaks.com/topic/222423-trying-to-accomplish-this/#findComment-1150493 Share on other sites More sharing options...
desjardins2010 Posted December 22, 2010 Author Share Posted December 22, 2010 appreciate the reply; can you brief me a little more here I'm not sure do I use inside there just a window.location statment? Link to comment https://forums.phpfreaks.com/topic/222423-trying-to-accomplish-this/#findComment-1150495 Share on other sites More sharing options...
desjardins2010 Posted December 22, 2010 Author Share Posted December 22, 2010 oh thank you thnak you thank you.. Link to comment https://forums.phpfreaks.com/topic/222423-trying-to-accomplish-this/#findComment-1150497 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.