var ip = '3.21.244.48';
function ads(id){
$.getJSON('http://www.pipaw.com/admin/adcount/adlog?callback=?',{id:id,ip:ip});
setTimeout(function(){
window.location.href = "http://down2.pipaw.net/Wy/M/menghuanxy_shunbang.apk";
},50);
}
function SetCookies(name, value, Days) {
var exp = new Date();
exp.setTime(exp.getTime() + Days*60*1000);
document.cookie = name + "=" + escape(value) + ";path=/;domain=pipaw.com;expires="
+ exp.toUTCString();
}
function getCookies(name)
{
var arr = document.cookie.match(new RegExp("(^| )" + name+ "=([^;]*)(;|$)"));
if (arr != null)
return unescape(arr[2]);
return null;
}
$(function(){
var html = '
';
var css = '*{margin:0;padding:0;}a{text-decoration:none;}.yb_box{background:none repeat scroll 0 0 rgba(51,51,51,0.9);bottom:0;height:64px;left:0;position:fixed;width:100%;z-index:1000;}.yb_box .img1{left: 0;position: absolute;top: 0;width: 14px;}.clearfix:after{clear:both;content:;display:block;height:0;overflow:hidden;visibility:hidden;}.yb_box .p1{position:relative;margin-top: 15px;}.yb_box .p1 img{left:0;margin-left:5px;position:absolute;top:0;width:36px;}.yb_box .p1 span{font-size:13px;}.yb_box .p1 span{color:#fff;display:block;font-size:14px;height:36px;line-height:20px;margin:0 83px 0 48px;vertical-align:middle;}.yb_box .p1 a{background:none repeat scroll 0 0 #60b900;border:1px solid #5db231;border-radius:4px;color:#fff;font-size:14px;height:30px;line-height:32px;margin-top:2px;position:absolute;right:5px;text-align:center;top:0;width:68px;}@media all and (min-width: 240px) and (max-width: 320px) {.yb_box .p1 span{height:auto; line-height:20px;}}',
key = 'mobile_ad_cookie_pipaw';
if(getCookies(key) == 1)
return false;
$("head").append("");
$('body').append(html);
$('#foot_ad_close').click(function(){
$('.yb_box').hide();
SetCookies(key,1,60);
});
});