Skip to content

Instantly share code, notes, and snippets.

@stanwu
Last active January 28, 2017 13:54
Show Gist options
  • Select an option

  • Save stanwu/0b0dffc223251bbac04fd86c0726614e to your computer and use it in GitHub Desktop.

Select an option

Save stanwu/0b0dffc223251bbac04fd86c0726614e to your computer and use it in GitHub Desktop.
<style type='text/css'>
#loading {
background: #ffffff;
position:absolute; width:100%; height:24;
top:0; bottom:0; left:0; right:0; margin:auto;
z-index: 999999999;
}
</style>
<div id='loading'>
<div id='loading-msg'>
<span><table bgcolor=#ff0000><tr><td><font color=#ffffff>Loading…</fontable></span>
</div>
</div>
:
:
your code here
:
:
<script>
//put this code on end of your page
window.onload=function() {
var Layer_choice;
Layer_choice = eval("document.getElementById('loading')");
Layer_choice.style.display='none';
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment