blog

当前位置:首页>文章中心>blog
网页转向代码/asp/html/java/...
blog 2008-01-22 1 阅读

网页转向代码/asp/html/java/...

小泥巴 小泥吧科技 2008-01-22

1.两个域名同一个空间自动跳转的ASP代码
<%if Request.ServerVariables("SERVER_NAME")="cdpy.com" then
response.redirect "default.asp"
else%>
<%end if%>
<%if Request.ServerVariables("SERVER_NAME")="www.cdpy.com" then
response.redirect "default.asp"
else%>
<%end if%>
<%if Request.ServerVariables("SERVER_NAME")="xingqiba.com" then
response.redirect "cdhome/default.asp"
else%>
<%end if%>
<%if Request.ServerVariables("SERVER_NAME")="www.xingqiba.com" then
response.redirect "cdhome/default.asp"
else%>
<%end if%>
<%if Request.ServerVariables("SERVER_NAME")="blog.xingqiba.com" then
response.redirect "blog/"
else%>

2.html中跳转最全代码




正在进入


 

正在进入,请稍等...
  
  
  
   var bar=0 
var line="||" 
var amount="||" 
count() 
function count(){ 
bar=bar+2 
amount =amount + line 
document.loading.chart.value=amount 
document.loading.percent.value=bar+"%" 
if (bar<99) 
{setTimeout("count()",100);} 
else 
{window.location = "http://blog.gangege.com/";} 
}
 



如果您的浏览器不支持跳转,请点这里.



3.html的meta方式

这种方法的好处是可以控制重定向的时间

4.在

5.当前页面定时20秒自动转向对应的页面

window.setTimeout("autoLogin()",20000);
function autoLogin(){
   window.location.href="http://www.hbedu.net/default.asp";
}

相关标签:

发表评论:

评论记录:

未查询到任何数据!
QQ咨询
回电话
回拨通话

我们稍后回拨您的电话

座机请加区号

微信联系
微信扫一扫
微信二维码

扫码加微信