<pre lang="Javascript">document.onreadystatechange = function () { var state = document.readyState if (state == 'complete') { document.getElementById('interactive'); document.getElementById('loading').style.visibility="hidden"; } }
#loading{ width:100%; height:100%; position:fixed; z-index:9999; background:url("http://code.jquery.com/mobile/1.3.1/images/ajax-loader.gif") no-repeat center center rgba(0,0,0,0.25) }
<div id="loading"></div>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)