阿里云的OSS直接可以提供web服务的.上传index.html静态网页,实现域名跳转.
index.html网页代码
<!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>
<meta http-equiv="Content-Type" content="textml; charset=gb2312" />
<meta name="baidu-site-verification" content="jqQxJVZ8mV" />
<title>正在为您跳转至最新区域....请耐心等待...</title>
<style type="text/css">
<!--
body {
background:#fff;
color:#383838;
font-size:14px;
font-family:'Microsoft Yahei','Lucida Grande',Helvetica,Arial,sans-serif;
margin:120px 0;
padding:0;
}
input {
color:#383838;
height:25px;
line-height:25px;
font-family:'Microsoft Yahei','Lucida Grande',Helvetica,Arial,sans-serif;
padding:3px;
border:1px solid #bbb;
background:#fff;
}
#w {
width:580px;
height:392px;
text-align:center;
position:absolute;
top:50%;
left:50%;
margin:-196px 0 0 -290px;
}
#w a {
color:#fff;
font-size:1px;
}
#s {
width:580px;
margin:0 auto;
text-align:left;
height:38px;
line-height:38px;
border-bottom:3px solid #333;
}
#s span {
color:#aaa;
font-size:12px;
float:right;
text-align:right;
}
#x {
color:#888;
width:578px;
margin:0 auto;
padding:80px 0;
text-align:center;
background:#f1f1f1;
border:1px solid #ddd;
border-top:none;
border-bottom:1px solid #ddd;
}
#b {
color:#aaa;
width:558px;
margin:0 auto;
height:35px;
line-height:35px;
text-align:left;
padding:10px;
background:#f1f1f1;
border:1px solid #ddd;
border-top:none;
border-bottom:2px solid #ddd;
}
#b span {
float:right;
text-align:right;
}
#b span a {
color:#fff;
font-size:14px;
background:#333;
text-decoration:none;
padding:8px 15px;
}
#b span a:hover {
color:#fff;
background:#111;
}
-->
</style>
</head>
<body>
<div id="w">
<div id="s"><span>如果转跳不成功,请手动点击进入官网</span>正在为您转跳到最新区域,请稍候……</div>
<div id="x">
<form name="loading">
<input type="text" name="chart" size="66">
<input type="text" name="percent" size="5" style="color:#fff; text-align:center; background:#555; border:1px solid #555;">
</form>
</div>
<div id="b"><span><a href="https://www.naojv.com">点击进入官网</a></span><font color="#000000">《2017独家》……</font></div>
<script>
var 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)
{setTimeout("count()",10);}
else
{window.location = "https://www.naojv.com";}
}
</script>
</body>
<ml>
</html>