Hello 'freaks'
Im making a test website where i can press a button ( then the windows explorer menu pops up and i have to choose a file to upload ) and then when i press the submit button i want a loading animation
But im not sure how to do that...
Thanks in Freakvance
Im making a test website where i can press a button ( then the windows explorer menu pops up and i have to choose a file to upload ) and then when i press the submit button i want a loading animation
But im not sure how to do that...
<form action="upload_file.php" method="post" enctype="multipart/form-data"> <div id="fields"> <p>Type: <input type="text" name="type" required autofocus></p> <p>Desc: <input type="text" name="desc" required></p> <p>Filename: <input type="file" name="file" id="file" required></p><br> <p><input type="submit" name="submit" value="submit" /></p> <body onload="makeLoadingGifDisappear()"> <img src="images/loading.gif" id="myLoadingGif"> <script type="text/javascript"> function makeLoadingGifDisappear() { document.getElementById('myLoadingGif').style.display = 'none'; } </script> </body> </div> </form>Anyone who knows how to do that?
Thanks in Freakvance