How would one go about making a progress bar in html/css/javascript. I don\'t really want to use Flash. Something along the lines of what can be found here: http://dustincur
You can use setInterval to create a progress bar.
function animate() {
var elem = document.getElementById("bar");
var width = 1;
var id = setInterval(frame, 10);
function frame() {
if (width >= 100) {
clearInterval(id);
} else {
width++;
elem.style.width = width + '%';
}
}
}
#progress-bar-wrapper {
width: 100%;
background-color: #ffffd;
}
#bar {
width: 1%;
height: 30px;
background-color: orange;
}