页面优化:HTML代码页面跳转大全。
在对网站内部进行优化时,可能会用到各种页面跳转代码,在这里,我们汇总了一些常见的页面跳转HTML代码,以供参考,网页的跳转在很多时候都非常的有用,下面的是两个简单的例子:
1、HTML跳转页面,用<meta>里直接写刷新语句:
<html>
<head>
<meta http-equiv="Content-Language" content="">
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<meta http-equiv="refresh" content="5;url=ck-hat/">
<title>html网页自动跳转代码到黑帽SEO页面</title>
</head>
<body>
</body>
</body>
注意:这段代码用于打开当前页面与跳转目标页面不相同的情况,如果是:带码。
2、HTML中利用JS跳转代码,用JavaScript脚本来跳转
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>正在进入东莞SEO中的网站优化页面</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
=amount
=bar+"%"
if (bar<99)
{se
东莞SEO:HTML代码页面跳转大全 来自淘豆网m.daumloan.com转载请标明出处.