1.
document.onreadystatechange = function () { if(document.readyState=="complete") { document.getElementById('divprogressbar').style.display='none'; } }
2.判断图片
https://www.cnblogs.com/mq0036/p/6278498.html