成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

探討PHP頁面自動(dòng)跳轉(zhuǎn)的實(shí)現(xiàn)方法

開發(fā) 后端
我們?cè)谶@篇文章中為大家詳細(xì)介紹了有關(guān)PHP頁面自動(dòng)跳轉(zhuǎn)的實(shí)現(xiàn)方法,希望對(duì)又需要的朋友有所幫助。

PHP頁面自動(dòng)跳轉(zhuǎn)的實(shí)現(xiàn)對(duì)于PHP新手來說還是比較陌生的,希望通過對(duì)本文的理解,能夠提高我們的實(shí)際編程能力,對(duì)PHP頁面自動(dòng)跳轉(zhuǎn)的實(shí)現(xiàn)方法有一個(gè)深刻的了解。#t#

1.meta 標(biāo)簽實(shí)現(xiàn)跳轉(zhuǎn):

<meta http-equiv="refresh" content="秒; url=下一個(gè)頁面">

2 .JavaScript實(shí)現(xiàn)跳轉(zhuǎn):

  1. < script language="JavaScript">
  2. var userAgent = navigator.userAgent;
  3. var MSIEIndex = userAgent.indexOf("MSIE");
  4. if (userAgent.indexOf("Win") != -1 &&
  5. userAgent.indexOf("MSIE") != -1 &&
  6. userAgent.substring((MSIEIndex + 5),(MSIEIndex + 8)) >= 5.5)
  7. window.location.replace("http://www.shuigong.com");
  8. //-->
  9. < /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)方法一:

  1. < html>
  2. < head>
  3. < title>網(wǎng)頁跳轉(zhuǎn)< /title>
  4. < meta http-equiv="refresh" content="0;url=cgi-bin/leoboard.cgi">
  5. < /head>
  6. < body>
  7. < /body>
  8. < /html>

PHP頁面自動(dòng)跳轉(zhuǎn)方法二

  1. <html>
  2. < head>
  3. < title>正在進(jìn)入>>> Loading>>> < /title>
  4. < /head>
  5. < body bgcolor="#FFFFFF" text="#000000">
  6. < p> < /p>< tr> <td width=724>
  7. < p align=center><font color="red" size="2">
    正在進(jìn)入,請(qǐng)等待,謝謝......< /font>< /p>< /td>< /tr>< tr>
  8. < td width="724">
  9. < p align=center>
  10. < form name=loading>
  11. < div align=center>
  12. < p>
  13. < 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;"
    >
  14. < 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
  15. var line = "||"
  16. var amount ="||"
  17. count()
  18. function count(){
  19. barbar= bar+2
  20. amountamount =amount + line
  21. document.loading.chart.value=amount
  22. document.loading.percent.value=bar+"%"
  23. if (bar<99)
  24. { setTimeout("count()",10); }
  25. else
  26. { window.location = "http://www.wwwfox.net/cgi-bin/leoboard.cgi"; }
  27. }< /script>
  28. < / body>
  29. < /html>

實(shí)現(xiàn)PHP頁面自動(dòng)跳轉(zhuǎn)的代碼

1:

  1. < script language="j avascript">
  2. location.replace
    ("http://www.***.com")
  3. < /script>

2:

  1. < script language="j avascript">
  2. setTimeout(window.location=
    "http://www.dinmo.net",0)
  3. < /script>

3:

  1. < script language="JavaScript" >
  2. bName = navigator.appName;
  3. if ((bName == "Netscape") ||
  4. (bName == "Microsoft Internet Explorer"))
  5. window.location=http://www.dinmo.net;
  6. < /script>
  7. < FRAMESET rows=\'*\'>
  8. < FRAMESET cols=\'*\'>
  9. < FRAME SRC=\'http://www.dinmo.net\'>
  10. < noframes>

JS實(shí)現(xiàn)跳轉(zhuǎn)代碼_多域名指向同一空間

  1. < script>try { if( self.location == "http://玉米一/" ) {
  2. top.location.href = "http://玉米一/目錄";
  3. }
  4. else if( self.location == "http://玉米二/" ) {
  5. top.location.href = "http://玉米二/目錄";
  6. }
  7. else if( self.location == "http://玉米三/" ) {
  8. top.location.href = "http://玉米三/目錄";
  9. }
  10. else if( self.location == "http://玉米四/" ) {
  11. top.location.href = "http://玉米四/目錄";
  12. }
  13. else { document.write ("錯(cuò)誤的訪問地址") } } catch(e) { }
  14. < /script>
責(zé)任編輯:曹凱 來源: 新浪博客
相關(guān)推薦

2009-12-11 13:25:01

PHP頁面跳轉(zhuǎn)

2009-12-02 20:02:18

PHP實(shí)現(xiàn)頁面跳轉(zhuǎn)

2009-12-01 16:34:21

PHP表單

2015-05-05 10:51:32

php頁面跳轉(zhuǎn)方法

2009-12-02 19:08:19

PHP跳轉(zhuǎn)代碼

2009-07-03 17:24:31

Servlet頁面跳轉(zhuǎn)

2009-12-08 10:50:12

PHP GD庫實(shí)現(xiàn)中文

2009-11-30 18:46:51

PHP字符串顛倒順序

2009-12-24 17:57:53

WPF頁面跳轉(zhuǎn)

2021-05-18 09:49:08

鴻蒙HarmonyOS應(yīng)用

2009-12-10 13:14:26

PHP下拉框

2009-12-07 11:21:59

PHP生成縮略圖

2009-12-16 17:24:26

Ruby on Rai

2009-12-01 10:11:51

PHP自動(dòng)獲取關(guān)鍵詞

2009-11-23 10:31:25

PHP使用JSON

2009-11-30 18:59:52

PHP數(shù)組排序

2009-12-02 15:02:09

PHP simplex

2009-11-25 15:35:24

PHP實(shí)現(xiàn)站內(nèi)搜索引擎

2009-11-30 17:49:51

PHP函數(shù)preg_s

2009-11-25 16:29:08

PHP刪除數(shù)組元素
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)

主站蜘蛛池模板: 一区二区三区不卡视频 | 国产在线精品一区 | 国产精品中文字幕在线观看 | 中文字幕av在线 | 九九热精品在线 | 精品一区二区免费视频 | 久久久久久综合 | 成人精品福利 | 久久大全 | 日韩精品免费在线 | 少妇一区二区三区 | 久久三级av| 在线视频一区二区 | 最近中文字幕第一页 | 日本欧美在线观看视频 | 久久国产日韩 | 欧美日在线 | 欧美视频区 | 亚洲精品久久久蜜桃 | 免费看黄色小视频 | av在线伊人 | 好好的日在线视频 | 91影院在线观看 | 伊人久久综合 | 国产精品亚洲精品 | 国产成人久久精品一区二区三区 | 欧美精品一区二区三区在线播放 | 欧美日韩国产高清视频 | 国产精品视频久久久久久 | 久久久久久久久精 | 久草免费福利 | 久久久久国产精品www | 亚洲综合视频 | 91综合网| 亚洲欧美综合精品另类天天更新 | 手机三级电影 | 日本电影一区二区 | 毛片在线视频 | 国产精品久久久久久影院8一贰佰 | 看片国产 | 国产在线二区 |