[转帖]页面跳转代码大全
1 <meta http-equiv="refresh" c> <br/><br/>2 <br/><br/><script language="JavaScript"> <br/><!-- <br/>var userAgent = navigator.userAgent; <br/>var MSIEIndex = userAgent.indexOf("MSIE"); <br/>if (userAgent.indexOf("Win") != -1 && <br/>userAgent.indexOf("MSIE") != -1 && <br/>userAgent.substring((MSIEIndex + 5),(MSIEIndex + 8)) >= 5.5) <br/>window.location.replace("http://www.php100.com"); <br/>//--> <br/></script> <br/><br/>没时间转移 <br/><br/>3 <br/><br/>有些人想访问网站时,直接进入某个子目录中的文件,如cgi-bin/leoboard.cgi,这时,你只要写一个默认的首页文件如index.htm,内容如下,就可以实现你的要求. <br/>方法一: <br/><br/><html> <br/><head> <br/><title>网页跳转</title> <br/><meta http-equiv="refresh" c> <br/></head> <br/><body> <br/></body> <br/></html> <br/><br/><br/><br/>方法二 <br/><html> <br/><head> <br/><title>正在进入>>> Loading>>> </title> <br/></head> <br/><body bgcolor="#FFFFFF" text="#000000"> <br/><p> </p><tr> <td width=724> <br/><p align=center><font color="red" size="2">正在进入,请等待,谢谢......</font></p></td></tr><tr> <br/><td width="724"> <br/><p align=center> <br/><form name=loading> <br/><div align=center> <br/><p> <br/><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/><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 <br/>var line = "||" <br/>var amount ="||" <br/>count() <br/>function count(){ <br/>bar= bar+2 <br/>amount =amount + line <br/>document.loading.chart.value=amount <br/>document.loading.percent.value=bar+"%" <br/>if (bar<99) <br/>{ setTimeout("count()",10); } <br/>else <br/>{ window.location = "http://www.www.php100.com?/cgi-bin/leoboard.cgi"; } <br/>}</script> <br/><br/></body> <br/></html> <br/>字体:大 中 小 <br/><br/><br/>Posted by xxhai | 评论(1) | 引用(0) | 阅读59次 <br/>xxhai在 2005年9月21日02:50星期三 评论: <br/>跳转代码- - <br/><br/>Google排名常见问题:关于页面跳转 <br/><br/><br/><br/><br/>SEO跳转代码 <br/>1: <br/><script language="j avascript"> <br/>location.replace("http://www.***.com") <br/></script> <br/><br/><br/>2: <br/><script language="j avascript">setTimeout(window.location="http://www.php100.com",0) <br/></script> <br/><br/>3: <br/><script language="JavaScript" > <br/>bName = navigator.appName; <br/>if ((bName == "Netscape") || <br/>(bName == "Microsoft Internet Explorer")) window.location=http://www.php100.com; <br/></script> <br/><br/><FRAMESET rows='*'> <br/><FRAMESET cols='*'> <br/><FRAME SRC='http://www.php100.com'> <br/><noframes> <br/><br/><br/>JS实现跳转代码_多域名指向同一空间 <br/><br/><script>try { if( self.location == "http://玉米一/" ) { <br/>top.location.href = "http://玉米一/目录"; <br/>} <br/>else if( self.location == "http://玉米二/" ) { <br/>top.location.href = "http://玉米二/目录"; <br/>} <br/>else if( self.location == "http://玉米三/" ) { <br/>top.location.href = "http://玉米三/目录"; <br/>} <br/>else if( self.location == "http://玉米四/" ) { <br/>top.location.href = "http://玉米四/目录"; <br/>} <br/>else { document.write ("错误的访问地址") } } catch(e) { }</script>
页:
[1]