首页 | 注册 | 登录 | 归档 | 搜索 | 标签 | 在线工具

镜像跳转脚本

/* 镜像跳转
     By amxku         www.amxku.net
     2007-05-23
*/
var imgheight1
var imgleft1
document
.ns navigator.appName == "Netscape"
window.screen.width>800 imgheight1=230:imgheight1=350
window
.screen.width>1000 imgleft1=100:imgleft1=330
function myload1()
{
         
myleft1.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight1;
         
myleft1.style.right=imgleft1;
         
leftmove1();
}
function 
leftmove1()
{
     
myleft1.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight1;
     
myleft1.style.right=imgleft1;
     
setTimeout("leftmove1();",1)
}
    if (
window.location.href.substring(0,10)=="http://cnc")
     {
     
document.write("<div id=myleft1 style='position: 


absolute;width:90;top:"
+window.screen.height+";left:"+(window.screen.width-200)


+
";visibility: visible;z-index: 1'>");
     
document.write("<a href=http://www"+window.location.href.substring(10,2048)+"><img 


src=./images/www.gif border=0 alt=sebug.NET电信镜像站点></a><br />"
);
     
document.write("<a href=http://uni"+window.location.href.substring(10,2048)+"><img 


src=./images/uni1.gif border=0 alt=sebug.NET联通镜像站点></a>"
);
     
document.write("</div>");
     
myload1()
     }
    else     if (
window.location.href.substring(0,10)=="http://uni")
     {
     
document.write("<div id=myleft1 style='position: 


absolute;width:90;top:"
+window.screen.height+";left:"+(window.screen.width-200)


+
";visibility: visible;z-index: 1'>");
     
document.write("<a href=http://www"+window.location.href.substring(10,2048)+"><img 


src=./images/www.gif border=0 alt=sebug.NET电信镜像站点></a><br />"
);
     
document.write("<a href=http://cnc"+window.location.href.substring(10,2048)+"><img 


src=./images/cnc1.gif border=0 alt=sebug.NET网通镜像站点></a>"
);
     
document.write("</div>");
     
myload1()
     }
else
     {
     
document.write("<div id=myleft1 style='position: 


absolute;width:90;top:"
+window.screen.height+";left:"+(window.screen.width-200)


+
";visibility: visible;z-index: 1'>");
     
document.write("<a href=http://cnc"+window.location.href.replace


("//sebug.net/","//cnc.sebug.net/").substring(10,2048)+"><img src=./images/cnc.gif border=0 


alt=SEBUG.NET网通镜像站点></a><br />"
);
     
document.write("<a href=http://uni"+window.location.href.replace


("//sebug.net/","//uni.sebug.net/").substring(10,2048)+"><img src=./images/uni1.gif border=0 


alt=SEBUG.NET联通镜像站点></a>"
);
     
document.write("</div>");
     
myload1()
     }

Tags: 原创, sebug, php

Address: http://www.amxku.net/sebug-uni-cnc-js/

上一篇 »» Linkin Park
下一篇 »» 弄了个LOGO

相关文章

网友评论

收了,收了.呵
Post by 路过(124.77.1*.*) on 2007-06-24, 17:34 Quote #1

发表评论

评论内容: