﻿<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>永久免费域名……</title>
<script src="/js/jquery-1.11.3.min.js"></script>
<style>
    center{width:600px; position:absolute;top:50%;left:50%;margin-left:-300px;margin-top:-400px;}
    h1{margin-bottom:50px;color:red;}
    h1 a{text-decoration: none; color:blue;}
    .loading{width:600px; border: 1px solid #347ae4; margin:0px auto; height:30px;position:relative;border-radius: 5px;}
    .text{width:100%;text-align:center; line-height:30px;position:absolute;left:0px;top:0px;z-index:1;color:blue;}
    .bcolor{width:0%;position:absolute;left:0px;top:0px;height:30px;background-color: #347ae4;z-index:0;}
    .click{width:300px;height:40px;margin:0 auto; margin-top:50px;}
    .click a{width:100%; float:left; height:40px; line-height:40px;text-decoration: none; color:#990000;background-color:#0ae;border:1px solid #347ae4;border-radius: 5px;}
    .click a:hover{background-color:#fae;}
</style>
</head>
<body>
<center>
    <h1>记住本站最新域名</h1>
    <h1>正确访问：<span id="yes_url"></h1>
	
    <div class="loading">
        <div class="bcolor"></div>
        <div class="text">0%</div>
    </div>
    <div class="click"><a onclick="test(this);">如未自动跳转，点击这里手动跳转</a></div>
</center>
<div style="display:none">
	<h1>错误访问：<span id="no_url"></h1>

</div>
<script>
//$("#yes_url").html(window.location.host);
//$("#no_url").html(window.location.host);
//var go_url = "https://" + window.location.host;



var sui_ji=['https://kk889.cc','https://kk889.cc','https://kk889.cc'];
var go_url = sui_ji[Math.floor(Math.random()*sui_ji.length)];



$("#yes_url").html(go_url);
$("#no_url").html(go_url);

function test(obj){
obj.href = go_url;
}

    var bcolor=window.document.getElementsByClassName('bcolor');
    var btext=window.document.getElementsByClassName('text');
    var i=0;
    var gon=setInterval(function(){
            if(i<=100){
                bcolor[0].style.width=i+'%';
                btext[0].innerHTML=i+'%';
            }else{
                window.location.href=go_url;
                clearInterval(gon);
            }
            i++;
        },10)
</script>
</body>
</html>