镜像跳转脚本
amxku 发表于 2007-06-24, 10:15.
发表在:
技术相关
-
-
-
-
- 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()
- }
上一篇:
Linkin Park
下一篇:
弄了个LOGO
相关文章
访客评论