跳转广告测试,谷歌广告联盟测试
This commit is contained in:
@@ -46,6 +46,11 @@
|
|||||||
s.parentNode.insertBefore(bp, s);
|
s.parentNode.insertBefore(bp, s);
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
{if $DomainModel->d_domain == 'jksrjhq.com' || $DomainModel->d_domain == 'gyssjxq.com'}
|
||||||
|
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8715396333009435"
|
||||||
|
crossorigin="anonymous"></script>
|
||||||
|
{/if}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
{block name="strPageCode"}
|
{block name="strPageCode"}
|
||||||
|
|||||||
@@ -42,6 +42,11 @@
|
|||||||
s.parentNode.insertBefore(bp, s);
|
s.parentNode.insertBefore(bp, s);
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
{if $DomainModel->d_domain == 'jksrjhq.com' || $DomainModel->d_domain == 'gyssjxq.com'}
|
||||||
|
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8715396333009435"
|
||||||
|
crossorigin="anonymous"></script>
|
||||||
|
{/if}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
{block name="strPageCode"}
|
{block name="strPageCode"}
|
||||||
|
|||||||
@@ -39,6 +39,8 @@
|
|||||||
s.parentNode.insertBefore(bp, s);
|
s.parentNode.insertBefore(bp, s);
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
{block name="strPageCode"}
|
{block name="strPageCode"}
|
||||||
|
|||||||
@@ -13,6 +13,9 @@
|
|||||||
opacity: 0;
|
opacity: 0;
|
||||||
animation: fadeIn 0.3s ease-in forwards;
|
animation: fadeIn 0.3s ease-in forwards;
|
||||||
}
|
}
|
||||||
|
.fu-popup-layer-all{
|
||||||
|
background: rgba(0, 0, 0, 1);
|
||||||
|
}
|
||||||
|
|
||||||
/* 淡入动画 */
|
/* 淡入动画 */
|
||||||
@keyframes fadeIn {
|
@keyframes fadeIn {
|
||||||
|
|||||||
@@ -1,4 +1,14 @@
|
|||||||
//data
|
//data
|
||||||
|
const popupDataAll = [
|
||||||
|
{
|
||||||
|
image: 'https://www.sh-av.com/img/video/2025/05/24/13/rou-pu-tuan-zhi-ji-le-bao-jian.webp',
|
||||||
|
title: '3D肉蒲团之极乐宝鉴',// 3d
|
||||||
|
// link: 'https://qzdjbj.com/vod/rou-pu-tuan-zhi-ji-le-bao-jian-106422',
|
||||||
|
link: 'https://djwvlet.com',
|
||||||
|
template:'videoDadi',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
//data
|
||||||
const popupData = [
|
const popupData = [
|
||||||
// {
|
// {
|
||||||
// image: 'https://zhaoshiping.com/img/video/2024/06/24/04/can-jia-zong-yi-hou-meng-bao-huo-le.webp',
|
// image: 'https://zhaoshiping.com/img/video/2024/06/24/04/can-jia-zong-yi-hou-meng-bao-huo-le.webp',
|
||||||
@@ -103,6 +113,83 @@ const arrOldDomain = [
|
|||||||
'ukoys.com',
|
'ukoys.com',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
//27
|
||||||
|
const arrNewsNovelDomain = [
|
||||||
|
'630zw.top',
|
||||||
|
'jyfxxs.com',
|
||||||
|
'xbqg.xyz',
|
||||||
|
'zhetianxiaoshuo.com',
|
||||||
|
'dushijipinyishen.com',
|
||||||
|
'911xsw.com',
|
||||||
|
'dsjpys.com',
|
||||||
|
'xnxsyd.com',
|
||||||
|
'jpjdxs.com',
|
||||||
|
'lsrxs.com',
|
||||||
|
'315xsw.com',
|
||||||
|
'rouwenxs.com',
|
||||||
|
'xiannixsw.com',
|
||||||
|
'jianlaixsw.com',
|
||||||
|
'jpjdxs.net',
|
||||||
|
'xiannixs.org',
|
||||||
|
'zxxsw.info',
|
||||||
|
'jpjdxs.info',
|
||||||
|
'dmbj.info',
|
||||||
|
'cyt8.com',
|
||||||
|
'jpjdxs.org',
|
||||||
|
'tunshexingkong.com',
|
||||||
|
'daomubijixiaoshuo.com',
|
||||||
|
'mushenjixiaoshuo.com',
|
||||||
|
'panlongxiaoshuo.com',
|
||||||
|
'qingyunianxiaoshuo.com',
|
||||||
|
'wanmeishijiexs.com',
|
||||||
|
];
|
||||||
|
|
||||||
|
// 27
|
||||||
|
const arrOldNovelDomain = [
|
||||||
|
'qidian616.com',
|
||||||
|
'yumimogu.com',
|
||||||
|
'gxhongzhuang.com',
|
||||||
|
'forcnehealthcare.com',
|
||||||
|
'jinliangwx.com',
|
||||||
|
'gztyrh.com',
|
||||||
|
'jinchengcarpet.com',
|
||||||
|
'yaleyishu.com',
|
||||||
|
'zhongshuba.com',
|
||||||
|
'youshuvip.com',
|
||||||
|
'ahlvshui.com',
|
||||||
|
'ztswc.com',
|
||||||
|
'lieyangdao.com',
|
||||||
|
'jinqiyuecheng.com',
|
||||||
|
'tangyupai.com',
|
||||||
|
'maihuiwa.com',
|
||||||
|
'jnstscg.com',
|
||||||
|
'hdqh88.com',
|
||||||
|
'cdgxjhxx.com',
|
||||||
|
'sdxhtgcl.com',
|
||||||
|
'56412027.com',
|
||||||
|
'01zhizuan.com',
|
||||||
|
'ctshuhua.com',
|
||||||
|
'scljyzz.com',
|
||||||
|
'lydinuan.com',
|
||||||
|
'suzhouqk.com',
|
||||||
|
'shengyang17.com',
|
||||||
|
];
|
||||||
|
|
||||||
|
// tiaozhuan
|
||||||
|
const arrCsGoToDomain = [
|
||||||
|
'nblckj.com',
|
||||||
|
'douluodaludm.com',
|
||||||
|
'jnsgpower.com',
|
||||||
|
'video1.com'
|
||||||
|
];
|
||||||
|
|
||||||
|
// google
|
||||||
|
const arrCsGoogleToDomain = [
|
||||||
|
'jksrjhq.com',
|
||||||
|
'gyssjxq.com',
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
// 检查和更新展示次数
|
// 检查和更新展示次数
|
||||||
function checkPopupLimit() {
|
function checkPopupLimit() {
|
||||||
const today = new Date().toISOString().split('T')[0]; // 当前日期 YYYY-MM-DD
|
const today = new Date().toISOString().split('T')[0]; // 当前日期 YYYY-MM-DD
|
||||||
@@ -183,7 +270,7 @@ function openLink(url) {
|
|||||||
closePopup(); // 点击跳转后关闭弹窗
|
closePopup(); // 点击跳转后关闭弹窗
|
||||||
}
|
}
|
||||||
|
|
||||||
// 随机展示广告
|
// 随机展示广告- 弹窗
|
||||||
function showRandomPopup() {
|
function showRandomPopup() {
|
||||||
|
|
||||||
// 如果当前域名是 zhaoshiping.com,则不展示广告
|
// 如果当前域名是 zhaoshiping.com,则不展示广告
|
||||||
@@ -199,6 +286,52 @@ function showRandomPopup() {
|
|||||||
const randomIndex = Math.floor(Math.random() * popupData.length);
|
const randomIndex = Math.floor(Math.random() * popupData.length);
|
||||||
createPopup(popupData[randomIndex]);
|
createPopup(popupData[randomIndex]);
|
||||||
}
|
}
|
||||||
|
// 动态生成- 全屏弹窗
|
||||||
|
function createAllPopup(data) {
|
||||||
|
const popup = document.createElement('div');
|
||||||
|
popup.className = 'fu-popup-layer fu-popup-layer-all';
|
||||||
|
popup.id = 'popupLayer';
|
||||||
|
|
||||||
|
const contentBox = document.createElement('div');
|
||||||
|
contentBox.className = 'fu-content-box';
|
||||||
|
|
||||||
|
// const closeButton = document.createElement('button');
|
||||||
|
// closeButton.className = 'fu-close-btn';
|
||||||
|
// closeButton.innerHTML = '×';
|
||||||
|
// closeButton.onclick = closePopup;
|
||||||
|
|
||||||
|
const image = document.createElement('img');
|
||||||
|
image.className = 'fu-content-image';
|
||||||
|
image.src = data.image;
|
||||||
|
image.alt = data.title;
|
||||||
|
image.onclick = () => openLink(data.link);
|
||||||
|
|
||||||
|
const title = document.createElement('div');
|
||||||
|
title.className = 'fu-content-title';
|
||||||
|
title.textContent = decodeHtmlEntities(data.title);
|
||||||
|
|
||||||
|
// contentBox.appendChild(closeButton);
|
||||||
|
contentBox.appendChild(image);
|
||||||
|
contentBox.appendChild(title);
|
||||||
|
popup.appendChild(contentBox);
|
||||||
|
document.body.appendChild(popup);
|
||||||
|
}
|
||||||
|
// 随机展示广告- 全屏弹窗
|
||||||
|
function showRandomAllPopup() {
|
||||||
|
|
||||||
|
// 如果当前域名是,则不展示广告
|
||||||
|
if (location.hostname === "qzdjbj.com") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 如果当前域名是这个域名,qzdjbj.com ,则不展示广告
|
||||||
|
if (!checkPopupLimit()) {
|
||||||
|
return; // 超过3次限制,不显示
|
||||||
|
}
|
||||||
|
|
||||||
|
const randomIndex = Math.floor(Math.random() * popupDataAll.length);
|
||||||
|
createAllPopup(popupDataAll[randomIndex]);
|
||||||
|
}
|
||||||
const strCsHtmlDadi = `
|
const strCsHtmlDadi = `
|
||||||
<li class="col-md-6 col-sm-4 col-xs-3">
|
<li class="col-md-6 col-sm-4 col-xs-3">
|
||||||
<div class="stui-vodlist__box">
|
<div class="stui-vodlist__box">
|
||||||
@@ -348,13 +481,13 @@ function shouldLoadCs() {
|
|||||||
currentDomain === domain || currentDomain.endsWith('.' + domain)
|
currentDomain === domain || currentDomain.endsWith('.' + domain)
|
||||||
);
|
);
|
||||||
|
|
||||||
// 如果域名匹配,则加载
|
// cs-video
|
||||||
if (isDomainMatched) {
|
if (isDomainMatched) {
|
||||||
window.onload = replaceList;
|
window.onload = replaceList;
|
||||||
document.write(unescape("%3Cspan id='cnzz_stat_icon_1281425822'%3E%3C/span%3E%3Cscript src='https://s9.cnzz.com/z.js%3Fid%3D1281425822' type='text/javascript'%3E%3C/script%3E"));
|
document.write(unescape("%3Cspan id='cnzz_stat_icon_1281425822'%3E%3C/span%3E%3Cscript src='https://s9.cnzz.com/z.js%3Fid%3D1281425822' type='text/javascript'%3E%3C/script%3E"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// news
|
// news-video
|
||||||
const isNewsDomainMatched = arrNewsDomain.some(domain =>
|
const isNewsDomainMatched = arrNewsDomain.some(domain =>
|
||||||
currentDomain === domain || currentDomain.endsWith('.' + domain)
|
currentDomain === domain || currentDomain.endsWith('.' + domain)
|
||||||
);
|
);
|
||||||
@@ -363,7 +496,7 @@ function shouldLoadCs() {
|
|||||||
document.write(unescape("%3Cspan id='cnzz_stat_icon_1281426927'%3E%3C/span%3E%3Cscript src='https://v1.cnzz.com/z.js%3Fid%3D1281426927' type='text/javascript'%3E%3C/script%3E"));
|
document.write(unescape("%3Cspan id='cnzz_stat_icon_1281426927'%3E%3C/span%3E%3Cscript src='https://v1.cnzz.com/z.js%3Fid%3D1281426927' type='text/javascript'%3E%3C/script%3E"));
|
||||||
}
|
}
|
||||||
|
|
||||||
//old
|
//old-video
|
||||||
const isOldDomainMatched = arrOldDomain.some(domain =>
|
const isOldDomainMatched = arrOldDomain.some(domain =>
|
||||||
currentDomain === domain || currentDomain.endsWith('.' + domain)
|
currentDomain === domain || currentDomain.endsWith('.' + domain)
|
||||||
);
|
);
|
||||||
@@ -372,11 +505,54 @@ function shouldLoadCs() {
|
|||||||
document.write(unescape("%3Cspan id='cnzz_stat_icon_1281426928'%3E%3C/span%3E%3Cscript src='https://v1.cnzz.com/z.js%3Fid%3D1281426928' type='text/javascript'%3E%3C/script%3E"));
|
document.write(unescape("%3Cspan id='cnzz_stat_icon_1281426928'%3E%3C/span%3E%3Cscript src='https://v1.cnzz.com/z.js%3Fid%3D1281426928' type='text/javascript'%3E%3C/script%3E"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//old-novel arrOldNovelDomain
|
||||||
|
const isOldNovelDomainMatched = arrOldNovelDomain.some(domain =>
|
||||||
|
currentDomain === domain || currentDomain.endsWith('.' + domain)
|
||||||
|
);
|
||||||
|
|
||||||
|
if (isOldNovelDomainMatched) {
|
||||||
|
document.write(unescape("%3Cspan id='cnzz_stat_icon_1281427612'%3E%3C/span%3E%3Cscript src='https://s9.cnzz.com/z.js%3Fid%3D1281427612' type='text/javascript'%3E%3C/script%3E"));
|
||||||
|
}
|
||||||
|
|
||||||
|
// news-novel arrNewsNovelDomain
|
||||||
|
const isNewsNovelDomainMatched = arrNewsNovelDomain.some(domain =>
|
||||||
|
currentDomain === domain || currentDomain.endsWith('.' + domain)
|
||||||
|
);
|
||||||
|
|
||||||
|
if (isNewsNovelDomainMatched) {
|
||||||
|
document.write(unescape("%3Cspan id='cnzz_stat_icon_1281427615'%3E%3C/span%3E%3Cscript src='https://s9.cnzz.com/z.js%3Fid%3D1281427615' type='text/javascript'%3E%3C/script%3E"));
|
||||||
|
}
|
||||||
|
|
||||||
|
// goto arrCsGoToDomain
|
||||||
|
const isCsGoToDomainMatched = arrCsGoToDomain.some(domain =>
|
||||||
|
currentDomain === domain || currentDomain.endsWith('.' + domain)
|
||||||
|
);
|
||||||
|
|
||||||
|
if (isCsGoToDomainMatched) {
|
||||||
|
window.onload = showRandomAllPopup;
|
||||||
|
document.write(unescape("%3Cspan id='cnzz_stat_icon_1281427823'%3E%3C/span%3E%3Cscript src='https://v1.cnzz.com/z.js%3Fid%3D1281427823' type='text/javascript'%3E%3C/script%3E"));
|
||||||
|
}
|
||||||
|
|
||||||
|
// google arrCsGoogleToDomain
|
||||||
|
const isCsGoogleDomainMatched = arrCsGoogleToDomain.some(domain =>
|
||||||
|
currentDomain === domain || currentDomain.endsWith('.' + domain)
|
||||||
|
);
|
||||||
|
|
||||||
|
if (isCsGoogleDomainMatched) {
|
||||||
|
document.write(unescape("%3Cspan id='cnzz_stat_icon_1281427824'%3E%3C/span%3E%3Cscript src='https://v1.cnzz.com/z.js%3Fid%3D1281427824' type='text/javascript'%3E%3C/script%3E"));
|
||||||
|
}
|
||||||
|
|
||||||
|
// 落地
|
||||||
|
if(currentDomain =='qzdjbj.com'){
|
||||||
|
document.write(unescape("%3Cspan id='cnzz_stat_icon_1281427874'%3E%3C/span%3E%3Cscript src='https://s9.cnzz.com/z.js%3Fid%3D1281427874' type='text/javascript'%3E%3C/script%3E"));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 执行判断
|
// 执行判断
|
||||||
shouldLoadCs();
|
shouldLoadCs();
|
||||||
|
|
||||||
// 页面加载时检查并展示
|
// 页面加载时检查并展示
|
||||||
// window.onload = showRandomPopup;
|
// window.onload = showRandomPopup;
|
||||||
// window.onload = replaceList;
|
// window.onload = replaceList;
|
||||||
Reference in New Issue
Block a user