当前位置:主页 > 查看内容

网页跳转代码的三种方法

发布时间:2021-07-24 00:00| 位朋友查看

简介:meta http-equiv="Content-Language" content="zh-CN" meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312" meta http-equiv="refresh" content="0.1;url= http://www.jyyidc.com/linux" title /title /head body /body /html 第二种:带有……
meta http-equiv="Content-Language" content="zh-CN" meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312" meta http-equiv="refresh" content="0.1;url= http://www.jyyidc.com/linux" title /title /head body /body /html

第二种:带有百分数的显示跳转

 head 
 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 
 input type=text name=percent size=47 
 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://www.jyyidc.com/linux/ ";} 
} /script 
 /form 
 p align="center" 如果您的浏览器不支持跳转, a href=" http://www.jyyidc.com/linux/ " font color="#FF0000" 请点这里 /font /a . /p 
 /body 
 /html 

第三种:和第一种差不多也是直接跳转

 body 
 script language='javascript' document.location = ' http://www.jyyidc.com/linux/ ' /script 
 /body 
 /html 

本文转自网络,原文链接:https://developer.aliyun.com/article/785715
本站部分内容转载于网络,版权归原作者所有,转载之目的在于传播更多优秀技术内容,如有侵权请联系QQ/微信:153890879删除,谢谢!

推荐图文

  • 周排行
  • 月排行
  • 总排行

随机推荐