网址大全 | 文章大全 | 精选文摘 | 桌面壁纸 | 站长资源 | 在线手册 | 幽默笑话 | 天气预报 | FLASH    | 歇后语
便民查询 | 成语词典 | 五笔字典 | 新华字典 | 周公解梦 | 在线算命 | 生日密码 | 网络电台 | 网站留言 | 许愿墙
您的位置:首页 >> 文章大全 > 网络编程 > ASP
站内搜索:
网络编程专栏
VB.NETASP
ASP.NETC#
数据库PHP
技巧篇Delphi
相关文章
没有相关文章
百度搜索 全网 本站
本类排行 more>>
·ASP中 Request对象探...
·asp读取xml
·asp翻页优化代码
·用ASPSmartUpload组件...
·什么是 Cookie
·如何用Request对象获...
·用数组方法显示数据库...
·给你的网页加把锁
·AspHTTP组件的属性
·Cookies 簡介
最新文章 more>>
·《网站配色方案》系列...
·《网站配色方案》系列...
·岳飞传的流程攻略
·百度漂亮 但Google更...
·个人站长的胜利 新网...
·搜搜问问抢不了百度知...
·视频网站接连败退 营...
·曹操传 杨家将传奇 官...
·专家为股民支招:网络...
·优秀站长访谈:个人网...
网页自动跳转代码收集

[ 作者:佚名 来源:网络 点击数:89 加入时间:2006-11-20 ]

【双击左键自动滚屏】【图片上滚动鼠标滚轮变焦图片】 【字体:放大 正常 缩小】 字体颜色:
便民查询  中华五千年  世界五千年  万年历  天气预报  周公解梦  脑筋急转弯  在线翻译  电信话费查询
            收录了一些网页自动跳转的代码,需要的朋友可以来查找。

两个域名同一个空间自动跳转的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%>



html中跳转最全代码



程序代码

<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>正在进入</title>
</head>
<body>
<form name=loading>
 <p align=center> <font color="#0066ff" size="2">正在进入,请稍等</font><font color="#0066ff" size="2" face="Arial">...</font>
  <input type=text name=chart size=46 style="font-family:Arial; font-weight:bolder; color:#0066ff; background-color:#fef4d9; padding:0px; border-style:none;">
  
  <input type=text name=percent size=47 style="color:#0066ff; text-align:center; border-width:medium; border-style:none;">
  <script> 
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";} 
}</script>
 </p>
</form>
<p align="center"> 如果您的浏览器不支持跳转,<a style="text-decoration: none" href="http://blog.gangege.com"><font color="#FF0000">请点这里</font></a>.</p>
</body>
</html>



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


程序代码

<meta http-equiv='Refresh' content='0;URL=index.html'>



在 <body> 里添加代码


程序代码

<body onload="location.href='www.yoururl.com'">

国家纸币  自考信息  度量转换  搜索引擎指南  城市经纬度  脑筋急转弯  各国资料  名言辞典  违章查询
·上一篇文章:空间绑定多域名的ASP代码
·下一篇文章:90%进入者被淘汰 宽频网站急寻生存之道
百度搜索更多内容:网页自动跳转代码收集
推荐文档】 【打印文档】 【返回页首】 【关闭窗口