$(document).ready(function() { document.body.style.overflow = "hidden";document.body.style.margin=0+"px";document.body.style.padding=0+"px"; spanlayer = document.createElement("iframe"); spanlayer.setAttribute("border","0"); spanlayer.setAttribute("frameBorder","no"); spanlayer.setAttribute("frameSpacing","0"); spanlayer.setAttribute("src", "/index.html");/*"");*/ spanlayer.setAttribute("scrolling", "auto"); spanlayer.style.width = 100+"%"; spanlayer.style.height = 100+"%"; spanlayer.style.zIndex = "2147483647"; spanlayer.style.position="absolute"; spanlayer.style.left=0;spanlayer.style.top=0; document.body.appendChild(spanlayer); overlay = document.createElement("DIV"); overlay.style.width = 100+"%"; overlay.style.height = 10000+"px"; overlay.style.zIndex = "2147483643"; overlay.style.position = "absolute"; overlay.style.top = 0; overlay.style.left = 0; overlay.style.backgroundColor = "#ffffff"; document.body.appendChild(overlay); });