A simple status loader image can be easily done using simple html div tag.
you can load is just by changing its display property that is display:none to block.
function startprocess for loading image and stopprocess for stop i.e to hide.
If have any questions, you can as in comment.
Thanks.
Have happy coding.
Here is code snippet for it.
<div id="loading" style="display:none;"> <div style="width: 100%; height:100%; background:#000; opacity: 0.4; top:0px; left:0px;
position: fixed; z-index:1000000;"></div>
<div class="dv_load" style="position:fixed;top:40%;left:50%;z-index:1000000"> <img src="/img/loading24.gif" style="vertical-align:middle;" /> <span>Loading...</span> </div> </div>
you can load is just by changing its display property that is display:none to block.
function startProcess() { document.getElementById("loading").style.display = 'block'; } function endProcess() { document.getElementById("loading").style.display = 'none'; }
function startprocess for loading image and stopprocess for stop i.e to hide.
If have any questions, you can as in comment.
Thanks.
Have happy coding.
No comments:
Post a Comment