欢迎光临 - 我的站长站,本站所有资源仅供学习与参考,禁止用于商业用途或从事违法行为!

php教程

PHP过度跳转页面代码

php教程 我的站长站 2020-09-29 共51人阅读

PHP过度跳转页面代码,大致效果如下图

PHP过度跳转页面代码

新建个go.php文件 将下方的代码,复制粘贴到你新建的go.php文件中,保存(CSS代码我压缩了所以不用管,把https://www.wdzzz.com/改成自己的网站地址)

代码如下

<?php 
$t_url=$_GET['url'];
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.tx47.cn/';
$title='参数错误,正在返回首页...';
}
}
} else {
$title='参数缺失,正在返回首页...';
$url='https://www.wdzzz.com/';
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="refresh" content="5;url='<?php echo $url;?>';">
<title><?php echo $title;?></title>
<div id="circle"></div>
<div id="circletext"></div>
<div id="circle1"></div>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="refresh" content="1;url='<?php echo $url;?>';">
<title><?php echo $title;?></title>
<style>
<style type="text/css">
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}body{background:#3498db;}#loader-container{width:188px;height:188px;color:white;margin:0 auto;position:absolute;top:50%;left:50%;margin-right:-50%;transform:translate(-50%,-50%);border:5px solid #3498db;border-radius:50%;-webkit-animation:borderScale 1s infinite ease-in-out;animation:borderScale 1s infinite ease-in-out;}#loadingText{font-family:'Raleway',sans-serif;font-size:1.4em;position:absolute;top:50%;left:50%;margin-right:-50%;transform:translate(-50%,-50%);}@-webkit-keyframes borderScale{0%{border:5px solid white;}50%{border:25px solid #3498db;}100%{border:5px solid white;}}@keyframes borderScale{0%{border:5px solid white;}50%{border:25px solid #3498db;}100%{border:5px solid white;}}
</style>
</style></head>
<body>
<div id="loader-container"><p id="loadingText">页面加载中...</p></div>
</body>
</html>

调用方法

https://www.wdzzz.com/go.php/?url=跳转到别人的网站


相关推荐
  • 跳转页面模板
  • php代码
  • HTML广告跳转过度页面
    HTML广告跳转过度页面

    一款HTML广告跳转过度页面,存HTML+CSS+JS制作,就一个页面,模板的作用主要就是提示用户这是第三方广告,交易前请谨慎。 把文件传到根目录,然后挂广告的链接格式:https://你的域名/ad.html?url=广告商域...

    html模板 411 3年前
  • HTML简洁的loading加载页面跳转网站模板
    HTML简洁的loading加载页面跳转网站模板

    简单的HTML+JS+CSS页面loading跳转效果网站模板,修改非常简单。模板页面最下面的JS中的url变量为最后跳转的地址,修改这个为您的地址就可以了。...

    html模板 673 3年前
  • 简单的404跳转网站模板
    简单的404跳转网站模板

    简单的404跳转网站模板,删除了自带的广告链接,所有图片素材全部本地化。

    html模板 272 3年前
  • CSS3+JS页面loading过度跳转效果
    CSS3+JS页面loading过度跳转效果

    CSS3+JS页面loading过度跳转效果,字母跳动效果,具体效果如下图CSS3+JS页面loading过度跳转效果代码<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF...

    css教程 163 3年前
  • PHP过度跳转页面代码

    PHP过度跳转页面代码,大致效果如下图新建个go.php文件 将下方的代码,复制粘贴到你新建的go.php文件中,保存(css代码我压缩了所以不用管,把http://www.wdzzz.com/改成自己的网站地址)代码如下<?php $t_url=$_GET[&#39;url&#39;];if(!empty($t_url)) {preg_m...

    php教程 51 3年前
  • 支付宝企业账户转账个人账户php接口代码

    前言支付宝企业账户转账个人账户php接口代码,该接口主要用于平台对用户奖励的发放,场景也很简单就是我在你平台上有余额,我提现,平台给钱。只不过项目中是用的官方的SDK调用的,仔细看了下那个SDK目录,把很多无用的接口(目前自己用不上)也包含在里面,作为强...

    php教程 159 1年前
  • php判断目录文件是否存在

    一段简单的php判断目录文件是否存在代码,收藏记录一下,以后肯定用得到的。<?php$filename = &#39;../../e/install/&#39;; if (file_exists($filename)) { echo "<h3><div align=&#39;center&#39;><font color=&#39;#FF0000&#39;>存在安全风险!请将 ...

    php教程 114 2年前
  • curl函数获取API接口数据方法

    PHP利用curl函数,获取API接口数据方法示例代码,自用收藏<?php $weather = curl_init(); curl_setopt($weather,CURLOPT_URL,"https://api.pc2801.com/cqssc/".time()); curl_setopt($weather, CURLOPT_SSL_VERIFYPEER, false); //如果...

    php教程 88 2年前
  • 158网盘直连解析代码

    API代码<?php/*** @package 158Pan* @author Andy* @version 1.2.0* @link https://lsland.cn*/// 指定允许其他域名访问 header(&#39;Access-Control-Allow-Origin:*&#39;);header(&#39;content-type:application/json;charset:utf-8&#39;);functi...

    php教程 129 2年前
  • PHP获取QQ用户昵称+头像API接口代码

    如果要获得QQ用户的头像和昵称,需要在腾讯开放平台申请API接入才可以,但是这个不需要!只需要输入用户的正确的QQ号即可返回用户的头像和昵称。API接口代码<?php // 通过QQ号即可获取用户信息 // 获取QQ头像接口// http://q1.qlogo.cn/g?b=qq&nk=QQ号&s=...

    php教程 217 2年前