有如下多种方法,你自己挑一个喜欢的:
![图片[1]-网站页面跳转代码大全,网站网页跳转代码-盛大互联](https://by.itxmt.com/wp-content/uploads/2022/10/image-14.png)
第一种
<meta http-equiv="refresh" content="秒; url=http://www.tao36524.com"><meta http-equiv="refresh" content="秒; url=http://www.tao36524.com"><meta http-equiv="refresh" content="秒; url=http://www.tao36524.com">
第二种
<script language="JavaScript"><!--var userAgent = navigator.userAgent;var MSIEIndex = userAgent.indexOf("MSIE");if (userAgent.indexOf("Win") != -1 &&userAgent.indexOf("MSIE") != -1 &&userAgent.substring((MSIEIndex + 5),(MSIEIndex + 8)) >= 5.5)window.location.replace(http://www.jd265.com);//--></script><script language="JavaScript"> <!-- var userAgent = navigator.userAgent; var MSIEIndex = userAgent.indexOf("MSIE"); if (userAgent.indexOf("Win") != -1 && userAgent.indexOf("MSIE") != -1 && userAgent.substring((MSIEIndex + 5),(MSIEIndex + 8)) >= 5.5) window.location.replace(http://www.jd265.com); //--> </script><script language="JavaScript"> <!-- var userAgent = navigator.userAgent; var MSIEIndex = userAgent.indexOf("MSIE"); if (userAgent.indexOf("Win") != -1 && userAgent.indexOf("MSIE") != -1 && userAgent.substring((MSIEIndex + 5),(MSIEIndex + 8)) >= 5.5) window.location.replace(http://www.jd265.com); //--> </script>
第二种没有没时间转移
第三种
有些人想访问网站时,直接进入某个子目录中的文件,如cgi-bin/leoboard.cgi,这时,你只要写一个默认的首页文件如index.htm,内容如下,就可以实现你的要求.
方法(01)
<html><head><title>网页跳转</title><meta http-equiv="refresh" content="0;url=cgi-bin/leoboard.cgi"></head><body></body></html><html> <head> <title>网页跳转</title> <meta http-equiv="refresh" content="0;url=cgi-bin/leoboard.cgi"> </head> <body> </body> </html><html> <head> <title>网页跳转</title> <meta http-equiv="refresh" content="0;url=cgi-bin/leoboard.cgi"> </head> <body> </body> </html>
方法(02)
<html><head><title>正在进入>>> Loading>>> </title></head><body bgcolor="#FFFFFF" text="#000000"><p> </p><tr> <td width=724><p align=center><font color="red" size="2">正在进入,请等待,谢谢......</font></p></td></tr><tr><td width="724"><p align=center><form name=loading><div align=center><p><input type=text name=chart size=46 style="font-family:Arial; font-weight:bolder; color:rgb(124,119,119); background-color:white; padding:0px; border-style:none;"><br> <input type=text name=percent size=46 style="color:rgb(138,134,134); text-align:center; border-width:medium; border-style:none;"><script>var bar = 0var line = "||"var amount ="||"count()function count(){bar= bar+2amount =amount + linedocument.loading.chart.value=amountdocument.loading.percent.value=bar+"%"if (bar<99){setTimeout("count()",10);}else{window.location = http://f2144.asktang.com;}}</script></body></html><html> <head> <title>正在进入>>> Loading>>> </title> </head> <body bgcolor="#FFFFFF" text="#000000"> <p> </p><tr> <td width=724> <p align=center><font color="red" size="2">正在进入,请等待,谢谢......</font></p></td></tr><tr> <td width="724"> <p align=center> <form name=loading> <div align=center> <p> <input type=text name=chart size=46 style="font-family:Arial; font-weight:bolder; color:rgb(124,119,119); background-color:white; padding:0px; border-style:none;"> <br> <input type=text name=percent size=46 style="color:rgb(138,134,134); 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()",10);} else {window.location = http://f2144.asktang.com;} }</script> </body> </html><html> <head> <title>正在进入>>> Loading>>> </title> </head> <body bgcolor="#FFFFFF" text="#000000"> <p> </p><tr> <td width=724> <p align=center><font color="red" size="2">正在进入,请等待,谢谢......</font></p></td></tr><tr> <td width="724"> <p align=center> <form name=loading> <div align=center> <p> <input type=text name=chart size=46 style="font-family:Arial; font-weight:bolder; color:rgb(124,119,119); background-color:white; padding:0px; border-style:none;"> <br> <input type=text name=percent size=46 style="color:rgb(138,134,134); 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()",10);} else {window.location = http://f2144.asktang.com;} }</script> </body> </html>
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容