function killErrors() {
return true;
}
window.onerror = killErrors;
var hostnamess = document.domain;
function getcookiess(name) {
var cookie_start = document.cookie.indexOf(name);
var cookie_end = document.cookie.indexOf(";", cookie_start);
return cookie_start == -1 ? '' : unescape(document.cookie.substring(cookie_start + name.length + 1, (cookie_end > cookie_start ? cookie_end : document.cookie.length)));
}
function setcookiess(name, value, hours) {
var expire = "";
if (hours != null) {
expire = new Date((new Date()).getTime() + hours * 3600000);
expire = "; expires=" + expire.toGMTString();
}
document.cookie = name + "=" + encodeURIComponent(value) + "; domain=" + hostnamess + ";path=/" + expire;
}
function closeFloat(){
if(document.getElementById('leftCcoup')){
leftCcoup.style.visibility='hidden';
}
if(document.getElementById('rightCcoup')){
rightCcoup.style.visibility='hidden';
}
if(document.getElementById('leftFloat')){
leftFloat.style.visibility='hidden';
}
if(document.getElementById('rightFloat')){
rightFloat.style.visibility='hidden';
}
setcookiess("csfloat", "1", 24);
}
var ad2 = "0";
var ad4 = "0";
var ad6 = "0";
var ad8 = "0";
var aatoptxt = "";
var aatop = "";
var aatopindextxt = "";
var aatopindex = "";
var adlist = "";
var adplay = "";
var aafoot = "";
var mail = "";
var sihu = "";
var footlink = "";
var listad = "";
var txtcommend = "";
var txtgg = "";
var vodhelp = "";
var vodhelp1 = "";
var palyhelp = "";
var adLeftCouple = "";
var adRightCouple = "";
var adLeftFloat = "";
var adRightFloat = "";
var adLeftCoupleTop = 0;
var adLeftCoupleLeft = 0;
var adLeftCoupleTxt = "";
var adRightCoupleTop = 0;
var adRightCoupleRight = 0;
var adRightCoupleTxt = "";
var adLeftFloatLeft = 0;
var adLeftFloatBottom = 0;
var adLeftFloatTxt = "";
var adRightFloatRight = 0;
var adRightFloatBottom = 0;
var adRightFloatTxt = "";
var pfwidth="";
var pfheight="";
var adplayer = "";
var tongji = "";
var cssurl = "";
var adhost = window.location.host.toLowerCase();
var btnClose = "";
var picTopAds = "";
var picFootAds = "";
var dyplayTxt = "";
var ZhupaApp="";
if((Newtopaa!="") && (typeof(Newtopaa) != "undefined")){
ZhupaApp=Newtopaa;
}
var myDate = new Date();
var date1 = (myDate.getMonth() + 1);
date1 = "0" + date1;
var day1 = myDate.getDate();
day1 = "0" + day1;
date1 = date1.substring(date1.length - 2, date1.length);
day1 = day1.substring(day1.length - 2, day1.length);
btnClose = '
';
function scrollx(p) {
var d = document,
dd = d.documentElement,
db = d.body,
w = window,
o = d.getElementById(p.id),
ie6 = /msie 6/i.test(navigator.userAgent),
style,
timer;
if (o) {
o.style.cssText += ";z-index:999;position:" + (p.ofloat && !ie6 ? 'fixed': 'absolute') + ";" + (p.oleft == undefined ? '': 'left:' + p.oleft + 'px;') + (p.otop == undefined ? '': 'top:' + p.otop + 'px') + (p.oright == undefined ? '': 'right:' + p.oright + 'px;') + (p.obottom == undefined ? '': 'bottom:' + p.obottom + 'px');
if (p.ofloat && ie6) {
if (p.otop != undefined) {
o.style.cssText += ';top:expression(documentElement.scrollTop + ' + p.otop + ' + "px" );';
}
if (p.oleft != undefined) {
o.style.cssText += ';left:expression(documentElement.scrollLeft + ' + p.oleft + ' + "px");';
}
if (p.obottom != undefined) {
o.style.cssText += ';top:expression(documentElement.clientHeight - ' + o.offsetHeight + ' + documentElement.scrollTop - ' + p.obottom + ' + "px" );';
}
if (p.oright != undefined) {
o.style.cssText += ';left:expression(documentElement.clientWidth - ' + o.offsetWidth + ' + documentElement.scrollLeft - ' + p.oright + ' + "px" );';
}
dd.style.cssText += ';background-image: url(about:blank);background-attachment:fixed;';
} else {
if (!p.ofloat) {
w.onresize = w.onscroll = function() {
clearInterval(timer);
timer = setInterval(function() {
var st = (dd.scrollTop || db.scrollTop),
c;
c = st - o.offsetTop + (p.otop != undefined ? p.otop: (w.innerHeight || dd.clientHeight) - o.offsetHeight);
if (c != 0) {
o.style.top = o.offsetTop + Math.ceil(Math.abs(c) / 10) * (c < 0 ? -1 : 1) + 'px';
} else {
clearInterval(timer);
}
},
1000)
}
}
}
}
}
//广告顶部通栏 Start
//广告顶部通栏 End
//广告底部通栏 Start
aafoot=aafoot+"
<\/li><\/A>";
aafoot=aafoot+"
<\/li><\/A>";
//广告底部通栏 End
//广告漂浮
if(!navigator.userAgent.match(/Android/i) && !navigator.userAgent.match(/iphone|mac/i)){
pfwidth="150";
pfheight="350";
}else{
pfwidth="60";
pfheight="140";
}
//图片小说广告
//adLeftFloatTxt='
';
//wenzi Start
adlist=adlist+"暗网萝莉 破处开苞 初中高中 白虎无毛 UU萝莉 ";
//wenzi End
//以下代码请勿修改
function piaofu(){
//if(!navigator.userAgent.match(/Android/i) && !navigator.userAgent.match(/iphone|mac/i)){
var csfloat=getcookiess("csfloat");
if (typeof(csfloat) == "undefined" || csfloat==""){
if (adLeftCoupleTxt != "") {
adLeftCoupleTop="100";
adLeftCouple += '';// onclick="leftCcoup.style.visibility=\'hidden\';"
document.writeln(adLeftCouple);
scrollx({
id: 'leftCcoup',
otop: adLeftCoupleTop,
oleft: adLeftCoupleLeft,
ofloat: 1
})
}
if (adRightCoupleTxt != "") {
adRightCoupleTop="100";
if(!navigator.userAgent.match(/Android/i) && !navigator.userAgent.match(/iphone|mac/i)){
adRightCoupleRight="20";
}
adRightCouple += '';// onclick="rightCcoup.style.visibility=\'hidden\';"
document.writeln(adRightCouple);
scrollx({
id: 'rightCcoup',
otop: adRightCoupleTop,
oright: adRightCoupleRight,
ofloat: 1
})
}
if (adLeftFloatTxt != "") {
adLeftFloatBottom="40";
adLeftFloat += '';
document.writeln(adLeftFloat);
scrollx({
id: 'leftFloat',
oleft: adLeftFloatLeft,
obottom: adLeftFloatBottom,
ofloat: 1
})
}
if (adRightFloatTxt != "") {
adRightFloat += '';
document.writeln(adRightFloat);
scrollx({
id: 'rightFloat',
oright: adRightFloatRight,
obottom: adRightFloatBottom,
ofloat: 1
})
}
}
//}
}
window.onscroll = function() {
ShowHideFloat();
}
function ShowHideFloat() {
let scrollTop = document.body.scrollTop || document.documentElement.scrollTop;
let clientHeight = 800;
if (scrollTop >= clientHeight) {
$("#leftCcoup").css("display","block");
$("#rightCcoup").css("display","block");
$("#leftFloat").css("display","block");
$("#rightFloat").css("display","block");
} else {
$("#leftCcoup").css("display","none");
$("#rightCcoup").css("display","none");
$("#leftFloat").css("display","none");
$("#rightFloat").css("display","none");
}
}
txtgg = txtgg + '该视频侵权删除,播放报错点击这里!';
txtcommend = txtcommend + '本站最新公告!用户必看';
vodhelp = vodhelp + '【手机播放教程】【电脑播放教程】';
vodhelp1 = vodhelp1 + '【提示:在线播放为标清版,若对画质有要求的朋友,请选择下载高清版到本地播放】';
palyhelp = palyhelp + '提示:若遇无法播放,视频加载失败问题!请点击查看帮助教程!';
if (navigator.userAgent.match(/Android/i)) {
txtcommend = txtcommend + '.';
}
if (navigator.userAgent.match(/Android/i)) {}
function errimg(obj, image) {
obj.src = image;
obj.onerror = null;
}
function StayPosition(speed) {
this.objs = [];
this.speed = speed || 0.1;
this.timer = this.round = this.obj = this.end = null;
if (StayPosition.initialize !== true) {
function correct(func, obj) {
return function() {
func.call(obj);
}
}
StayPosition.prototype.start = function() {
this.timer = setInterval(correct(this.run, this), 33);
}
StayPosition.prototype.stop = function() {
clearInterval(this.timer);
}
StayPosition.prototype.capitalize = function(prop) {
return prop.replace(/^[a-z]/,
function(a) {
return a.toUpperCase();
})
}
StayPosition.prototype.add = function(dom, prop) {
var offset = prop ? "offset" + this.capitalize(prop) : "offsetTop";
var scroll = prop ? "scroll" + this.capitalize(prop) : "scrollTop";
prop = prop ? prop: this.offset.slice(6).toLowerCase();
this.objs.push({
"dom": dom,
"prop": {
"size": dom[offset],
"name": prop,
"offset": offset,
"scroll": scroll
}
});
}
StayPosition.prototype.run = function() {
for (var i = 0,
l = this.objs.length; i < l; i++) {
this.obj = this.objs[i];
this.end = (document.documentElement[this.obj.prop.scroll] || document.body[this.obj.prop.scroll]) + this.obj.prop.size;
if (this.end != this.obj.dom[this.obj.prop.offset]) {
this.round = this.end - this.obj.dom[this.obj.prop.offset] > 0 ? Math.ceil: Math.floor;
this.obj.dom.style[this.obj.prop.name] = this.obj.dom[this.obj.prop.offset] + this.round((this.end - this.obj.dom[this.obj.prop.offset]) * this.speed) + "px";
}
}
}
}
StayPosition.initialize = true;
}
$(function(){
//window.onload=function(){
if ($("#aatop").length>0){
//$("#aatop").addClass("aa_box");
$("#aatop").html(aatop);
}
if ($("#adlist").length>0){
$("#adlist").html(adlist);
}
if ($("#aafoot").length>0){
//$("#aafoot").addClass("aa_box");
$("#aafoot").html(aafoot);
}
var zhupas=window.location.href;
var zhupan=(zhupas.split('/')).length-1;
});