14 May 2007

Show a file uploading progress bar





























“script language="JavaScript"
delay = 100;
imgNumber = 0;
totalimgNumber = 5;
anim = new Array();

for (i = 0; i < src =" '../images/upload'" src =" anim[imgNumber].src;">= totalimgNumber) imgNumber = 0;
}

function animate() {
Switch();
setTimeout("animate()", delay);
}
/script”

Use onClick="animate()" on a submit button in order to post data and initiate progress bar.

Images are also attached here.


















No comments: