---
title: " 网页自动跳转代码html"
author: "sujianchinaouya"
date: "2012-04-09T15:38:48Z"
tags: ["跳转"]
categories: ["Web前端"]
slug: "html"
draft: false
lastmod: "2012-04-09T15:38:48Z"
id: 1480442
url: "https://sujian.iteye.com/blog/1480442"
---

方案一

&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;meta http-equiv="refresh" content="0.1;url=http://www.dreamershop.com"&gt;  
&lt;title&gt;&lt;/title&gt;  
&lt;/head&gt;  
&lt;body&gt;  
&lt;/body&gt;  
&lt;/html&gt;

方案二

&lt;html&gt;  
&lt;head&gt;

&lt;meta http-equiv="Content-Type" content="text/html; charset=gb2312"&gt;  
&lt;title&gt;正在进入&lt;/title&gt;  
&lt;/head&gt;  
&lt;body&gt;  
&lt;form name=loading&gt;   
　&lt;p align=center&gt; &lt;font color="#0066ff" size="2"&gt;正在进入，请稍等&lt;/font&gt;&lt;font color="#0066ff" size="2" face="Arial"&gt;...&lt;/font&gt;  
　　&lt;input type=text name=chart size=46 style="font-family:Arial; font-weight:bolder; color:#0066ff; background-color:#fef4d9; padding:0px; border-style:none;"&gt;   
　　  
　　&lt;input type=text name=percent size=47 style="color:#0066ff; text-align:center; border-width:medium; border-style:none;"&gt;   
　　&lt;script&gt;　   
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&lt;99)　   
{setTimeout("count()",100);}　   
else　   
{window.location = "http://www.dreamershop.com";}　   
}&lt;/script&gt;   
　&lt;/p&gt;   
&lt;/form&gt;   
&lt;p align="center"&gt; 如果您的浏览器不支持跳转,&lt;a style="text-decoration: none" href="http://www.dreamershop.com"&gt;&lt;font color="#FF0000"&gt;请点这里&lt;/font&gt;&lt;/a&gt;.&lt;/p&gt;  
&lt;/body&gt;  
&lt;/html&gt;