镜像跳转脚本
By joe www.1100do.cn
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()
}