简介:

新版蓝色广告跳转页面代码分享,适用于各大技术资源网、娱乐网、导航以及博客等平台。

配合BASE64加密
/gg.php?aHR0cHM6Ly93d3cuaXlnenkuY29tLw==

图片:

Z370S7K903HIUNXWGR95OK5.png

代码部分:

<?php 
// https://www.yydsym.com/
$str = preg_replace('/^url=(.*)$/i','$1',$_SERVER["QUERY_STRING"]); 
$t_url = base64_decode($str);
if(!empty($t_url)) { 
preg_match('/(http|https):///',$t_url,$matches); 
if($matches){ 
$url=$t_url; 
$title='正在跳转广告页面 请稍等'; 
} else { 
preg_match('/./i',$t_url,$matche); 
if($matche){ 
$url='http://'.$t_url; 
$title='正在跳转广告页面 请稍等'; 
} else { 
$url='https://www.yydsym.com/'; 
$title='参数错误,正在返回首页...'; 
} 
} 
} else { 
$title='参数错误,正在返回首页...'; 
$url='https://www.yydsym.com/'; 
} 
?> 
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="/static/css/bootstrap.min.css">
<title><?php echo $title;?></title> 
<style>
*{
padding: 0px;
margin: 0px;
}
body{
width: 100%;
height: 100vh;
}
.main{
position: relative;
width: 100%;
height: 100%;
background: #018bff;
display: flex;
justify-content: center;
align-items: center;
}
.circle{
display: flex;
justify-content: center;
align-items: center;
width: 200px;
height: 200px;
/* background-image: linear-gradient(0deg,
rgb(47,102,255),
rgb(153,64,255) 30%,
rgb(238,55,255) 60%,
rgb(255,0,76) 100%); */
/* border-radius: 50%; */
/* animation: rotate 1s linear infinite; */
}
/* 模糊 */
.circle::before{
content: "";
position:absolute;
width: 200px;
height: 200px;
/* background-image: linear-gradient(0deg,
rgb(0 85 157),
rgb(255 255 255 / 0%) 30%,
rgb(255 255 255 / 0%) 60%,
rgb(255 255 255 / 0%) 100%); */
border-radius: 50%;
filter: blur(35px);
}
/* 黑圆 */
.circle::after{
content: "";
position:absolute;
width: 150px;
height: 150px;
background: #018bff;
border-radius: 50%;
}
h1 {
position: absolute;
color: #fff;
font-weight: bold;
display: none;
}
.title{
color: #FFFFFF;
position:absolute;
top:30%;
text-shadow:0px 0 30px #fff;
text-align: center;
font-size: 2rem;
font-weight: bold;
}
.text{
color: #FFFFFF;
position:absolute;
/*bottom:10%;*/
text-shadow:0px 0 30px #fff;
font-weight: bold;text-align: center;
}
/* 添加动画 */
@keyframes rotate{
0%{
transform: rotate(0deg);
}
100%{
transform: rotate(360deg);
}
}
</style>
</head> 
<body onload="time()">
<div class="main">
<div class="circle"></div>
<h1 id="second">3s</h1>
<p class="title"><?php echo $title;?></p>
<p class="text">网络交易请谨慎 如遇欺诈请联系QQ:123456789 投诉下架该广告</p>
</div>
</body>
<script>
function cs(){
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if(pair[0] == "url"){
return pair[1];
}
}
return("<?php echo $url;?>");//无指定跳转地址,将跳转此网页地址。
}
function time(){
var sec = document.getElementById("second");
var i = 3;//设置定时时间
var timer = setInterval(function(){
i--;
sec.innerHTML = i+"s";
if(i==1){
window.location.href = cs();
}
},1000);

function goBack(){ 
window.history.go(-1);
} 
}
</script>
</html>

发表回复

后才能评论