我有一个加载窗口,阻止用户访问网站内容,直到页面完成加载。我有不同的IE代码(我使用IE 11 w / Windows 7):
<body>
.........
<div id="loading"> <img id="loading-image" src="images/trs_loading.gif" width="500" height"226" alt="Loading..." />
<p class="loading_text">Rich content loading in progress . . . it's definitely worth the wait! ♫</p>
<br />
<p class="loading_text">In the meantime, like our official <a href="https://www.facebook.com/TheRhythmShop?fref=ts" class="loading_link" target="_blank">Facebook page.</p></a>
</div>
<script>
<? if(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') === false): ?>
$(window).load(function() {
$('#loading').hide();
});
<? else: ?>
window.onload = function() {
$('#loading').hide();
};
<? endif; ?>
</script>
</body>
问题是即使覆盖从IE消失后它最终会从持续保持点亮的硬盘灯中崩溃。该页面不响应鼠标事件。