for some reason it affected my html and css
heres my full code
HTML + CSS
Code:
<HTML>
<HEAD>
<style>
/*Container*/
.progress-bar {
border: 1px solid #56577A;
/*width of the progress bar container*/
width: 200px;
margin: 5px;
padding: 1px;
background: #fff;
float: left;
}
/*Progress Bar*/
.bar {
height: 15px;
font-size: 11px;
/* indent the text off the screen as we don’t want to see the text anymore.*/
text-indent:-9000px;
}
</style>
</head>
<body>
<div class="progress-bar" >
<div id ="sample" class="bar">100%</div>
</div>
<div id ="percentage"></div>
<script src="bar.js" type="text/javascript"></script>
<script type="text/javascript">
window.onload = function() {initialize()}
</script>
</body>
</html>
Heres My JS
Code:
function brim(Id,start,percentage) {
if (document.getElementById) {
o = document.getElementById(Id);
if (start <= percentage) {
setWidth(o, start);
start += 1;
//Show progression percentage near the progress bar
document.getElementById('percentage').innerHTML = (start -1) + "%";
window.setTimeout("brim('"+Id+"',"+start+","+percentage+")", 50);
} else {
window.location.href="http://darkcyber.thvhosting.net/";
}
}
}
Bookmarks