分享一个自用跳转页面go.php源码

管理员
管理员
管理员
246
文章
27
评论
2019年3月6日00:02:39 评论 1,356 4997字

这个板子是在瞎逛时看到的几个html模板结合修改的,我觉得还不错,就放到博客替换原来的跳转go.php文件了。文件在我博客用,今天发出来给大家看看!!喜欢就拿去用。代码简陋,有问题请指出!!!

点击图片可以查看效果哟(^U^)ノ~YO分享一个自用跳转页面go.php源码

<?php 
$url = $_GET['url'];
$a = '';
if( $a==$url ) {
	$b = "";
// echo 'true';
} else {
	$b = $url;
	$b = base64_decode($b);
}

$t_url = preg_replace('/^url=(.*)$/i','$1',$_SERVER["QUERY_STRING"]);
if(!empty($t_url)) {
	preg_match('/(http|https):\/\//',$t_url,$matches);
	if($matches){
		$url=$t_url;
		$title='页面加载中,请稍候...';
	} else {
		$title='加载中...';
		echo "<script>setTimeout(function(){window.opener=null;window.close();}, 30000);</script>";/**加载超时(30秒)自动关闭**/
	}
}
?>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta name="robots" content="noindex, nofollow" />
		<meta http-equiv="refresh" content="0.1;url=<?php echo $b; ?>">
		<meta charset="utf-8">
		<title><?php echo $title;?></title>
		<!--<script type="text/javascript">
			/**标题“<title>”滚动效果**/
			var msg = document.title;
			msg = "" + msg;pos = 0;
			function scrollMSG() {
				document.title = msg.substring(pos, msg.length) + msg.substring(0, pos);
				pos++;
				if (pos >  msg.length) pos = 0
				window.setTimeout("scrollMSG()",500);
			}
			scrollMSG();
		</script>-->
		<style type="text/css">body{overflow:hidden;background:#444;}#colorfulPulse{display:flex;justify-content:center;align-items:center;height:100vh;overflow:hidden;}#Pulse span{display: inline-block;width: 15px;height: 60px;animation-name: scale;-webkit-animation-name: scale;-moz-animation-name: scale;-ms-animation-name: scale;-o-animation-name: scale;animation-duration: 2s;-webkit-animation-duration: 2s;-moz-animation-duration: 2s;-ms-animation-duration: 2s;-o-animation-duration: 2s;animation-iteration-count: infinite;-webkit-animation-iteration-count: infinite;-moz-animation-iteration-count: infinite;-ms-animation-iteration-count: infinite;-o-animation-iteration-count: infinite;}#colorfont {font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";color: #3690cf;text-transform: uppercase;font-size: 1em;letter-spacing: 1.5px;text-align: center;margin-top: 20px;-webkit-animation: fade 2s infinite;-moz-animation: fade 2s infinite;}span.item-1 {background: #2ecc71;}span.item-2 {background: #3498db;}span.item-3 {background: #9b59b6;}span.item-4 {background: #e67e22;}span.item-5 {background: #c0392b;}span.item-6 {background: #e74c3c;}span.item-7 {background: #e74c8c;}.item-1 {animation-delay: -1s;-webkit-animation-delay: -1s;-moz-animation-delay: -1s;-ms-animation-delay: -1s;-o-animation-delay: -1s;}.item-2 {animation-delay: -0.9s;-webkit-animation-delay: -0.9s;-moz-animation-delay: -0.9s;-ms-animation-delay: -0.9s;-o-animation-delay: -0.9s;}.item-3 {animation-delay: -0.8s;-webkit-animation-delay: -0.8s;-moz-animation-delay: -0.8s;-ms-animation-delay: -0.8s;-o-animation-delay: -0.8s;}.item-4 {animation-delay: -0.7s;-webkit-animation-delay: -0.7s;-moz-animation-delay: -0.7s;-ms-animation-delay: -0.7s;-o-animation-delay: -0.7s;}.item-5 {animation-delay: -0.6s;-webkit-animation-delay: -0.6s;-moz-animation-delay: -0.6s;-ms-animation-delay: -0.6s;-o-animation-delay: -0.6s;}.item-6 {animation-delay: -0.5s;-webkit-animation-delay: -0.5s;-moz-animation-delay: -0.5s;-ms-animation-delay: -0.5s;-o-animation-delay: -0.5s;}.item-7 {animation-delay: -0.4s;-webkit-animation-delay: -0.4s;-moz-animation-delay: -0.4s;-ms-animation-delay: -0.4s;-o-animation-delay: -0.4s;}@-webkit-keyframes scale {0%, 40%, 100% {-moz-transform: scaleY(0.2);-ms-transform: scaleY(0.2);-o-transform: scaleY(0.2);-webkit-transform: scaleY(0.2);transform: scaleY(0.2);}20%, 60% {-moz-transform: scaleY(1);-ms-transform: scaleY(1);-o-transform: scaleY(1);-webkit-transform: scaleY(1);transform: scaleY(1);}}@-moz-keyframes scale {0%, 40%, 100% {-moz-transform: scaleY(0.2);-ms-transform: scaleY(0.2);-o-transform: scaleY(0.2);-webkit-transform: scaleY(0.2);transform: scaleY(0.2);}20%, 60% {-moz-transform: scaleY(1);-ms-transform: scaleY(1);-o-transform: scaleY(1);-webkit-transform: scaleY(1);transform: scaleY(1);}}@-ms-keyframes scale {0%, 40%, 100% {-moz-transform: scaleY(0.2);-ms-transform: scaleY(0.2);-o-transform: scaleY(0.2);-webkit-transform: scaleY(0.2);transform: scaleY(0.2);}20%, 60% {-moz-transform: scaleY(1);-ms-transform: scaleY(1);-o-transform: scaleY(1);-webkit-transform: scaleY(1);transform: scaleY(1);}}@keyframes scale {0%, 40%, 100% {-moz-transform: scaleY(0.2);-ms-transform: scaleY(0.2);-o-transform: scaleY(0.2);-webkit-transform: scaleY(0.2);transform: scaleY(0.2);}20%, 60% {-moz-transform: scaleY(1);-ms-transform: scaleY(1);-o-transform: scaleY(1);-webkit-transform: scaleY(1);transform: scaleY(1);}}@-webkit-keyframes fade {50% {opacity: 0.5;}100% {opacity: 1;}}@-moz-keyframes fade {50% {opacity: 0.5;}100% {opacity: 1;}}@-o-keyframes fade {50% {opacity: 0.5;}100% {opacity: 1;}@keyframes fade {50% {opacity: 0.5;}100% {opacity: 1;}}}</style>
	</head>
	<body>
		<div id="colorfulPulse">
			<div id="Pulse">
				<span class="item-1"></span>
				<span class="item-2"></span>
				<span class="item-3"></span>
				<span class="item-4"></span>
				<span class="item-5"></span>
				<span class="item-6"></span>
				<span class="item-7"></span>
				<h1 id="colorfont">Loading...</h1>
			</div>
		</div>
	</body>
</html>

 

资源下载
go.php文件下载链接点击下载(提取码: 176y)复制
1、本站所有内容归原作者所有,与本站无关
2、其他单位或个人使用、转载或引用本文时必须同时征得该帖子作者同意,注明来源
3、本站大部分资源来源码于网络,仅供学习交流使用,本站不提供任何技术支持,不作任何安全承诺,是否使用请自行判断
4、本帖部分内容转载自其它媒体,但并不代表本站赞同其观点和对其完整性负责
5、如本帖侵犯到任何版权问题,请立即告知本站,本站将及时予与删除并致以最深的歉意
6、本站管理员和工作人员有权不事先通知发贴者而删除本文,本站客服Email:service@teelm.com
weinxin
扫码关注微信公众
幂彀社区,一个关注互联网、平面设计等领域个人博客;致力于打造一个优秀的资源共享学习平台。
教程 最后更新:2019-4-29
管理员
  • 本文由 发表于 2019年3月6日00:02:39
  • 转载请务必保留本文链接:https://www.teelm.com/2019/03/06/12686.html
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: