Hi!
Sorry for my bad english.
I have this code:
<html>
<style type="text/css">
#traka{
border:1px solid black;
position:relative;
width:300px;
}
#boja{
position:absolute;
top:0;
left:0;
height:100%;
background-color:yellow;
}
#tekst{
text-align:center;
position:relative;
}
</style>
<script type="text/javascript">
wid=0;
function kreni(){
setTimeout("izvod()",700);
}
function izvod(){
wid+=10;
pos=(wid*100/300);
pos=Math.round(pos);
pos+="%";
document.getElementById('tekst').innerHTML=pos;
document.getElementById('boja').style.width=wid;
if(pos!="100%"){
kreni();
}}
</script>
<body>
<form action="upload.php" method="post" enctype="multipart/form-data" onsubmit="kreni()">
<input type="file" name="file">
<input type="submit" value="Upload">
</form>
<div id='traka'><div id='boja'></div><div id='tekst'>0%</div></div>
</body>
</html>
How to make progress bar? (I know how, but I don't know how to check file size)
I think that this must be created with "iframe", but I don't know how.
And file "upload.php", what must be the content of this file?
Thanks!