I have a script that creates a progress bar and is style with CSS. It works great, but once the bar reaches the end, it stops and I can not get the script to loop so that it starts again. How can I loop this script so that the progress bar starts over once it reaches the end?
<script type="text/javascript">
$(document).ready(function() {
var el = $(''#progress'');
el.animate({
width: "100%"
}, 40000);
});
</script>
<style>
#progressKeeper {background:#f2f2f2;display:none;width: 400px;height: 18px;border: 1px solid #CCC;-moz-border-radius:7px; border-radius:7px;color:#f2f2f2;font-family:Arial;font- weight:bold;font-style:italic;font-size:.9em;margin-bottom:2000px;}
#progress {background: #005c9e;width: 0;height: 17px;-moz-border-radius:7px; border- radius:7px;}
</style>
for (var i=0; i < progressCount; i++) { showProgressBar(); }You may want to wrap the whole thing in other function...