SanCi

网址跳转代码
【如果不生效,请检查编码格式是否正确,改为utf-8】收藏一下,有时候还是用的上的。自动跳转指定域名:<!D...
扫描右侧二维码阅读全文
21
2017/07

网址跳转代码

【如果不生效,请检查编码格式是否正确,改为utf-8】
收藏一下,有时候还是用的上的。
re.jpg

自动跳转指定域名:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Sanci - 三次</title>
<meta http-equiv="Content-Type" content="text/html"; charset="utf-8" />
</head>
<body>
<script language="javascript">document.location = "https://san.ci/"</script>
</body>
</html>

显示进度条,等待2秒跳转指定域名:

<HTML>
<HEAD>
<TITLE>正在进入 ...</TITLE>
<SCRIPT type=text/javascript>
<!--
var ie5 = (document.all && document.getElementsByTagName);
var step = 0;
function setSB(v, el, inforEl, message) {
if (ie5 || document.readyState == "complete") {
filterEl = el.children[0];
valueEl = el.children[1];
if (filterEl.style.pixelWidth > 0) {
var filterBackup = filterEl.style.filter;
filterEl.style.filter = "";
filterEl.style.filter = filterBackup;
}
filterEl.style.width = v + "%";
valueEl.innerText = v + "%";
inforEl.innerText = message;
}
}
function setSBByStep(v, el, inforEl, message) {
if (ie5 || document.readyState == "complete") {
step = step + v;
filterEl = el.children[0];
valueEl = el.children[1];
if (filterEl.style.pixelWidth > 0) {
var filterBackup = filterEl.style.filter;
filterEl.style.filter = "";
filterEl.style.filter = filterBackup;
}
filterEl.style.width = step + "%";
valueEl.innerText = step + "%"
inforEl.innerText = message;
}
}
function fakeProgress(v, el) {
if (v >= 101)
location.href="https://san.ci";
else {
setSB(v, el, infor, "页面正在跳转中,请稍候 ...");
window.setTimeout("fakeProgress(" + (v + 1) + ", document.all['" + el.id + "'])", 20);
}
}
//-->
</SCRIPT>
<SCRIPT language=javaScript>
</SCRIPT>
</HEAD>
<BODY bgColor=#f9f9f9 topMargin=100 onload=fakeProgress(0,sb)>
<P> </P>
<P> </P>
<P> </P>
<!-- Status Bar Starts -->
<DIV align=center>
<DIV id=sb
style="BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; BACKGROUND: #99ccff; BORDER-LEFT: medium none; WIDTH: 400px; BORDER-BOTTOM: #cccccc 1px solid; HEIGHT: 14px; TEXT-ALIGN: left">
<DIV id=sbChild1
style="FILTER: Alpha(Opacity=0, FinishOpacity=80, Style=1, StartX=0, StartY=0, FinishX=100, FinishY=0); OVERFLOW: hidden; WIDTH: 100%; POSITION: absolute; HEIGHT: 12px">
<DIV style="BACKGROUND: #000000; WIDTH: 100%" ;height:12px; overflow:
hidden></DIV>
</DIV>
<DIV
style="FONT-SIZE: 10px; WIDTH: 400px; COLOR: white; FONT-FAMILY: arial; POSITION: absolute; HEIGHT: 14px; TEXT-ALIGN: center"></DIV>
</DIV>
<!-- Status Bar Ends -->
<P></P>
<DIV id=infor
style="FONT-SIZE: 11px; WIDTH: 100%; COLOR: #999999; FONT-FAMILY: arial; POSITION: relative; HEIGHT: 14px; TEXT-ALIGN: center"></DIV>
</DIV>
</BODY>
</HTML>

显示进度条,等待2秒跳转的另一个风格:

<head>
<meta http-equiv="Content-Type" content="text/html"; charset="utf-8">
<title>正在进入,请稍候 ...</title>
</head>
<body>
<form name="loading">
<p align="center"> <font color="#0066ff" size="2">正在进入,请稍等</font><font color="#0066ff" size="2" face="Arial">…</font>

<input type=text name=chart size=46 style="font-family:Arial; font-weight:bolder; color:#0066ff; background-color:#fef4d9; padding:0px; border-style:none;">
<input type=text name=percent size=47 style="color:#0066ff; text-align:center; border-width:medium; border-style:none;">

<script language="javascript">
var bar=0 //先定义bar=0
var line="||"
var amount="||"
count()
function count(){
bar=bar+2
amount =amount + line
document.loading.chart.value=amount
document.loading.percent.value=bar+"%"
if (bar<99){ //如果bar<99,执行以下语句
setTimeout("count()",100); //100毫秒以后,执行count()函数
}else{ //否则,窗口跳转页面至该网址
window.location = "https://san.ci/";
}
}
</script>
</p>
</form>
<p align="center"> 如果您的浏览器不支持跳转,<a href="https://san.ci/"><font color="#FF0000">请点这里</font></a></p>
</body>
</html>

https 跳转,PHP代码的跳转,无需设置伪静态,只需把代码加入header.php即可

<?php
 if ($_SERVER["HTTPS"] <> "on")
{
    $xredir = "https://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
    header("Location: ".$xredir);
}
?>

html跳

<html>
<head>
<meta http-equiv="Content-Language" content="zh-CN">
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<title></title>
</head>
<body>
<meta http-equiv="refresh" content="0.1;url= https://www.san.ci">
</body>
</html>

隐性URL跳转域名:

<FRAMESET rows=”*” style=”BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px”><FRAME name=ename_main src=”https://hiend.life”></FRAMESET>
Last modification:May 2nd, 2018 at 11:50 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment