If you don't want it to repeat, modify the Javascript as follow :
-------------------- var i = 0; function animate() { if (i <= 100) { document.getElementById(\"test\").style.width = i + "%"; i++; setTimeout(animate, 500); }
I'm so sorry. I'm not good at server-side language and JavaScript. This JavaScript just make the bar animation, and it can't working in real work. You can ask your programer friends or Google it.
--
--
>.< ^^ +_+ ´_` :")
Haha did not even guessed.
--
My profile: Click
Visit !
If you don't want it to repeat, modify the Javascript as follow :
--------------------
var i = 0;
function animate() {
if (i <= 100) {
document.getElementById(\"test\").style.width = i + "%";
i++;
setTimeout(animate, 500);
}
}
animate();
--------------
When the animation of the bar is complete, it repeats.
How can I turn off the repeating?
How can I modify the code to make sure the bar remains complete after the animation is over?
--
[link] <-- My Twitter