数据正在传送.请稍候

梦游时光互联 » FAQ » 一个选择线路,记录cookie的页子
     
本帖主题: 一个选择线路,记录cookie的页子
2006-9-13 09:34 AM No.1 发表人:九天  主页  个人Blog  社区短消息  QQ对话  TOP
九天 (じ☆ve♂秋)
Reseller
Rank: 8Rank: 8


UID 5
精华 3
积分 216
帖子 83
体力 83
威望 46
贡献 1
阅读权限 120
注册 2005-12-15
来自 杭州
状态 离线
[广告]: 优惠券代码:20111001FF20% 有效期:2011.10.01/2011.10.15

%h}UNHQD@ jM/\!T0u
演示:http://www.no-sky.com
.]-K$_P+B7I
0J I|PSnindex.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>第一天空网络 - 请选择最快的站点</title>
<script type="text/javascript">
var cookieEnabled=(navigator.cookieEnabled)? true : false
//判断cookie是否开启

//如果浏览器不是ie4+或ns6+
if (typeof navigator.cookieEnabled=="undefined" && !cookieEnabled){
document.cookie="testcookie"
cookieEnabled=(document.cookie=="testcookie")? true : false
document.cookie="" //erase dummy value
}

/*
检查此IE是否支持cookie

*/       
//document.cookie = 'killme' + escape('nothing')
function cc()
{
        if (document.cookie == "")
        {
                alert("请打开cookie选项");
                document.getElementById('message').style.display='';
                document.getElementById('setarea').style.display='none';
                window.setTimeout("goto();",3000)  
                document.Form1.cookieexists.value ="false"
        }
        else
        {
                Get();
        alert("你已经打开了cookie选项!!!!!");
        document.getElementById('setarea').style.display='';               
        }
}


function GetCookie(name)
{
     var arg=name+ "=";
     var alen=arg.length;
     var clen=document.cookie.length;
     var i=0;
     while (i<clen) {
       var j=i+alen;
       if(document.cookie.substring(i,j)
       ==arg)
       return getCookieVal(j);
       i=document.cookie.indexOf("",i)+1;
       if(i==0)break;
     }
     return null;
}

function getCookieVal(offset) {
     var endstr=document.cookie.indexOf
       (";",offset);
     if(endstr==-1) //没有指定其他元素
       endstr=document.cookie.length;
     return unescape(document.cookie.substring
       (offset,endstr));
   }

function Get()
{                       
        if (cookieEnabled)
        {               
                var CookieArea = GetCookie('zz_area');
                //var CookieArea = "CNC";
                if (CookieArea == "CNC")
                {               
                        document.getElementById('loading').style.display='';                               
                        document.getElementById('setarea').style.display='none';                               
                        this.location = "http://cnc.no-sky.com/index.php";
                }
                else
                {
                        //判断电信线路
                        if (CookieArea == "TEL")
                        {
                                document.getElementById('loading').style.display='';                               
                                document.getElementById('setarea').style.display='none';                               
                                this.location = "http://dx.no-sky.com/index.php";
                        }
                        //判断移动线路
                        if (CookieArea == "YD")
                        {
                                document.getElementById('loading').style.display='';                               
                                document.getElementById('setarea').style.display='none';                               
                                this.location = "http://www.no-sky.com/index.php";
                        }                               
                        else
                        {
                                document.getElementById('setarea').style.display='';
                        }
                }
        }
        else
        {               
                this.location = "http://www.no-sky.com/index.php";
        }
}
function SetCNC()
{
        var mydate = new Date();
        mydate.setTime(mydate.getTime() + 315360000000);
        document.cookie = "zz_area=CNC;expires="+ mydate.toGMTString() + ";domain=no-sky.com";
        Get();
}
function SetTEL()
{
        var mydate = new Date();
        mydate.setTime(mydate.getTime() + 315360000000);
        document.cookie = "zz_area=TEL;expires=" + mydate.toGMTString() + ";domain=no-sky.com";
        Get();
}
function SetYD()
{
        var mydate = new Date();
        mydate.setTime(mydate.getTime() + 315360000000);
        document.cookie = "zz_area=YD;expires=" + mydate.toGMTString() + ";domain=no-sky.com";
        Get();
}
</script>
<body onload="Get()">
<table width="100%" height="180" border="0" cellspacing="0">
          <tr>
                    <td align="center" valign="bottom"><img src="http://wwwno-sky.com/images/wzlogo.gif" width="180" height="60" /></td>
          </tr>

</table>
<table width="450" border="0" align="center" cellspacing="0" bgcolor="#FFFFFF">
          <tr>
                    <td height="1" bgcolor="#FF6600"></td>
                    <td width="200" bgcolor="#FFFFFF"></td>
                    <td height="1" bgcolor="#FF6600"></td>
          </tr>
</table>
<table width="450" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>

                    <td width="1" bgcolor="#FF6600"></td>
                    <td>
<div id="message"  align="center" style="display:none">
        由于你的浏览器没有开启COOKIE功能(建议打开),系统将在3秒钟后,自动引导到第一天空网络主服务器...
</div>
<div id="loading" align="center" style="display:none">
<br />
        正在装载,请稍候...
</div>       
<div id="setarea"  align="center" style="display:none">
        <br />
        请您选择最快的站点,此选项将不会再次出现<br /> <br />

        如您希望重新选择,请清除浏览器COOKIE<br /><br /><br />
        <input type="button" value="中国移动" onClick="SetYD()">
        <input type="button" value="北方网通" onClick="SetCNC()">
        <input type="button" value="南方电信" onClick="SetTEL();">
        <input type="button" value="自动判断" onClick="javascript:window.location='auto.html'">
</div>

<br />
</td>
<td width="1" bgcolor="#FF6600"></td>
</tr>
</table>
<table width="450" height="1" border="0" align="center" cellspacing="0">
        <tr>
                  <td bgcolor="#FF6600"></td>
        </tr>
</table>
</body>
</html>
auto.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>第一天空网络 | 无限的天空..无限的精彩..这里有你想要的..</title>
<style type="text/css">
<!--
body {
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #333;
    text-align: center;
}
#wrap {
    margin:50px auto;
    background: #FFF;
}

#wrap p{
    margin:40px 0;
}

a:link {
    color: #63b900;
    text-decoration: none;
    border-bottom: 1px dashed;
}

a:visited {
    color: #7fc937;
    text-decoration: none;
    border-bottom: 1px dashed;
}

a:hover {
    color: #cc6600;
}

a:active {
    color: #4f711f;
}

-->
</style>
<script type="text/javascript" src="/js/title.js" charset="gb2312"></script>
</head>
<body>
<div id="wrap">
<p>尊敬的朋友,您好!自动选择最快的镜像服务器访问本站</p>

<p>速度测试中……</p>

<script type="text/javascript">
    i=1
    var autourl=new Array()
    autourl[1]="http://www.no-sky.com/index.php"
    autourl[2]="http://vnet.no-sky.com/index.php"
    autourl[3]="http://cnc.no-sky.com/index.php"
    autourl[4]="http://hk.no-sky.com/index.php"
    autourl[5]="http://usa.no-sky.com/index.php"       
    function auto(url){
    if(i){i=0;top.location=url}
    }
    function run(){
    for(var i=1;i<autourl.length;i++)  
     document.write("<img src='"+autourl[i]+"' width=1 height=1 onerror=auto('"+autourl[i]+"')>")
    }
    run()
</script>
<p>选择最快的镜像站点访问:</p>
<p><a href="http://www.no-sky.com/index.php">■移动主站</a> | <a href="http://uni.no-sky.com/index.php">■联通镜像站</a> | <a href="http://vnet.no-sky.com/index.php">■电信镜像站</a> | <a href="http://cnc.no-sky.com/index.php">■网通镜像站</a> | <a href="http://hk.no-sky.com/index.php">■香港镜像站</a> | <a href="http://usa.no-sky.com/index.php">■美国镜像站</a></p>
<p>高速镜像由 <a href="http://www.meyu.net/">梦游科技信息港</a> 提供</p>
<p>
版权所有:第一天空网络 2002-2005 未经授权禁止复制或建立镜像<br>
Copyright TM 2000 - 2006 No-Sky.Com <br>
中华人民共和国电信与信息服务业务经营许可证编号 <a href="http://www.miibeian.gov.cn/" target="_blank">浙ICP备05020460号</a><br>
</p>
</div>
</body>
</html>



此帖被评分,最近评分记录 flashack 在 2006-9-15 02:58 PM 评分: 威望 +1 ,理由是: 鼓励









梦游空间提供7天试用,购买送镜像服务5个,详情请加 QQ 483876
回复:一个选择线路,记录cookie的页子
2006-9-13 09:53 AM No.2 发表人:老牛  社区短消息  TOP
老牛
Newbie
Rank: 1



UID 2307
精华 0
积分 15
帖子 12
体力 4
威望 -1
贡献 0
阅读权限 10
注册 2006-9-10
状态 离线
[广告]: 备案信息核验单 - 现行国内备案必看
沙发

回复:一个选择线路,记录cookie的页子
2006-9-13 08:55 PM No.3 发表人:okbsb  个人Blog  社区短消息  TOP
okbsb
Discuz! user
Rank: 6Rank: 6


UID 99
精华 0
积分 198
帖子 66
体力 61
威望 0
贡献 0
阅读权限 60
注册 2005-12-16
状态 离线
[广告]: 优惠券代码:20111001FF20% 有效期:2011.10.01/2011.10.15
九天用的是什么CMS

回复:一个选择线路,记录cookie的页子
2006-9-14 06:28 AM No.4 发表人:九天  主页  个人Blog  社区短消息  QQ对话  TOP
九天 (じ☆ve♂秋)
Reseller
Rank: 8Rank: 8


UID 5
精华 3
积分 216
帖子 83
体力 83
威望 46
贡献 1
阅读权限 120
注册 2005-12-15
来自 杭州
状态 离线
[广告]: 新手解疑1:FTP空间各文件目录的作用
ECMS









梦游空间提供7天试用,购买送镜像服务5个,详情请加 QQ 483876
回复:一个选择线路,记录cookie的页子
2006-9-14 03:00 PM No.5 发表人:王飞强  主页  社区短消息  QQ对话  TOP
王飞强 ( の飛强)
King
Rank: 6Rank: 6
亿缘社区老大


UID 1073
精华 0
积分 1013
帖子 839
体力 823
威望 0
贡献 0
阅读权限 70
注册 2006-5-25
来自 九朝故都
状态 离线
[广告]: 新手解疑1:FTP空间各文件目录的作用
用的好嘛,我不是太会用了









   亿缘社区             集影视下载,休闲娱乐一体的社区!        http://www.fourm.com.cn

        
回复:一个选择线路,记录cookie的页子
2006-9-15 10:34 AM No.6 发表人:kary2005  主页  个人Blog  社区短消息  QQ对话  TOP
kary2005 (aifanwen)
Discuz! user
Rank: 6Rank: 6


UID 468
精华 0
积分 218
帖子 132
体力 121
威望 0
贡献 0
阅读权限 60
注册 2006-3-29
来自 最爱范文网
状态 离线
[广告]: 新手解疑1:FTP空间各文件目录的作用
不错,谢谢









网络上的免费范文集中地!
回复:一个选择线路,记录cookie的页子
2006-9-15 12:36 PM No.7 发表人:Austin  主页  社区短消息  TOP
Austin
Conqueror
Rank: 3Rank: 3


UID 1880
精华 0
积分 392
帖子 252
体力 224
威望 0
贡献 0
阅读权限 30
注册 2006-8-10
状态 离线
[广告]: 优惠券代码:20111001FF20% 有效期:2011.10.01/2011.10.15
這個其實。。。)h
W c1| H_ju@Y

鏡像經常掛。。如果記住了。。。那個用戶就淒慘了。。會一直無法訪問。。。










http://www.iefei.com
     

Powered by Discuz!3.12 Licensed © 2001-2005
Processed in 0.007688 second(s), 8 queries , Gzip enabled
所有时间为 GMT+8, 现在时间是 2024-5-6 02:32 AM
清除 Cookies - 联系我们 - 梦游时光互联 -