新聞中心
這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
探討PHP頁面自動(dòng)跳轉(zhuǎn)的實(shí)現(xiàn)方法
PHP頁面自動(dòng)跳轉(zhuǎn)的實(shí)現(xiàn)對(duì)于PHP新手來說還是比較陌生的,希望通過對(duì)本文的理解,能夠提高我們的實(shí)際編程能力,對(duì)PHP頁面自動(dòng)跳轉(zhuǎn)的實(shí)現(xiàn)方法有一個(gè)深刻的了解。#t#

創(chuàng)新互聯(lián)公司2013年開創(chuàng)至今,先為永福等服務(wù)建站,永福等地企業(yè),進(jìn)行企業(yè)商務(wù)咨詢服務(wù)。為永福企業(yè)網(wǎng)站制作PC+手機(jī)+微官網(wǎng)三網(wǎng)同步一站式服務(wù)解決您的所有建站問題。
1.meta 標(biāo)簽實(shí)現(xiàn)跳轉(zhuǎn):
2 .JavaScript實(shí)現(xiàn)跳轉(zhuǎn):
- < 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.shuigong.com");
- //-->
- < /script>
3 假如訪問網(wǎng)站時(shí),直接進(jìn)入某個(gè)子目錄中的文件,如cgi-bin/leoboard.cgi,這時(shí),只要寫一個(gè)默認(rèn)的首頁文件如index.htm,內(nèi)容如下,就可以實(shí)現(xiàn)你的要求.
PHP頁面自動(dòng)跳轉(zhuǎn)方法一:
- < html>
- < head>
- < title>網(wǎng)頁跳轉(zhuǎn)< /title>
- < meta http-equiv="refresh" content="0;url=cgi-bin/leoboard.cgi">
- < /head>
- < body>
- < /body>
- < /html>
PHP頁面自動(dòng)跳轉(zhuǎn)方法二
- < head>
- < title>正在進(jìn)入>>> Loading>>> < /title>
- < /head>
- < body bgcolor="#FFFFFF" text="#000000">
- < p> < /p>< tr>
- < p align=center>
正在進(jìn)入,請(qǐng)等待,謝謝......< /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
tyle="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;">


咨詢
建站咨詢