---
title: "url网页自动转发代码 自动转向网址"
author: "haimav"
date: "2009-09-25T17:42:09Z"
tags: []
slug: "url"
draft: false
lastmod: "2009-09-25T18:03:00Z"
id: 477454
url: "https://haimav.iteye.com/blog/477454"
---

一个简单实用的代码  
&lt;META HTTP-EQUIV="Refresh" CONTENT="5;URL=http://www.itblo.com/"&gt;  
把上面的语句放到&lt;head&gt;----&lt;/head&gt;的之间!  
其中的"5"为转发时间,为5秒后转发,后面的地址为转发到的地址!

 

其他

&lt;html&gt;  
&lt;head&gt;  
&lt;meta http-equiv="Content-Language" content="zh-CN"&gt;  
&lt;meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312"&gt;  
&lt;title&gt;Wanyou's Sky&lt;/title&gt;  
&lt;/head&gt;  
&lt;frameset framespacing="0" border="0" rows="0" frameborder="0"&gt;  
&lt;frame name="main" src="[http://hi.baidu.com/baishuijj](http://hi.baidu.com/baishuijj)" scrolling="auto" noresize&gt;  
&lt;/frameset&gt;  
&lt;/html&gt;

（2）不隐藏真实URL代码1：

&lt;script language="javascript"&gt;  
url ="[http://hi.baidu.com/baishuijj](http://hi.baidu.com/baishuijj)"  
location.href=url;  
&lt;/script&gt;

（3）倒记时URL转发代码：

&lt;meta http-equiv="refresh" content="3; url=http://hi.baidu.com/baishuijj"&gt;

说明：把粉红色的标题改为你自己的，把鲜红色的地址改为你要到达的地址，把紫色的数字改为你需要的秒数时间。