下面是編織夢想的跳轉代碼,供大家參考。
主頁
& lt劇本?type = " text/JavaScript " & gt;if(window.location.toString()。indexOf('pref=padindex ')?!=?-1){ } else { if(/AppleWebKit。* Mobile/I . test(navigator . user agent)?||?(/MIDP | Symbian OS |諾基亞|三星| LG | NEC | TCL |阿爾卡特|波導| DBTEL |多普達|飛利浦|海爾|聯想| MOT-|諾基亞|索尼愛立信| SIE-|夏新|中興/。test(navigator . user agent)){ if(window . location . href . index of(?手機”)& lt0){試試{if(/Android|Windows?phone | webOS | iPhone | iPod | BlackBerry/I . test(navigator . user agent)){ window . location . href = " { dede:global . CFG _ mobile URL/}/index . PHP ";}別的?if(/iPad/I . test(navigator . user agent)){ } else { } } catch(e){ } } } & lt;/script & gt;列表頁面
& lt劇本?type = " text/JavaScript " & gt;if(window.location.toString()。indexOf('pref=padindex ')?!=?-1){ } else { if(/AppleWebKit。* Mobile/I . test(navigator . user agent)?||?(/MIDP | Symbian OS |諾基亞|三星| LG | NEC | TCL |阿爾卡特|波導| DBTEL |多普達|飛利浦|海爾|聯想| MOT-|諾基亞|索尼愛立信| SIE-|夏新|中興/。test(navigator . user agent)){ if(window . location . href . index of(?手機”)& lt0){試試{if(/Android|Windows?phone | webOS | iPhone | iPod | BlackBerry/I . test(navigator . user agent)){ window . location . href = " { dede:global . CFG _ mobile URL/}/list . PHP?tid = { dede:field . id/} ";}別的?if(/iPad/I . test(navigator . user agent)){ } else { } } catch(e){ } } } & lt;/script & gt;內容頁面
& lt劇本?type = " text/JavaScript " & gt;if(window.location.toString()。indexOf('pref=padindex ')?!=?-1){ } else { if(/AppleWebKit。* Mobile/I . test(navigator . user agent)?||?(/MIDP | Symbian OS |諾基亞|三星| LG | NEC | TCL |阿爾卡特|波導| DBTEL |多普達|飛利浦|海爾|聯想| MOT-|諾基亞|索尼愛立信| SIE-|夏新|中興/。test(navigator . user agent)){ if(window . location . href . index of(?手機”)& lt0){試試{if(/Android|Windows?phone | webOS | iPhone | iPod | BlackBerry/I . test(navigator . user agent)){ window . location . href = " { dede:global . CFG _ mobile URL/}/view . PHP?aid = { dede:field . id/} ";}別的?if(/iPad/I . test(navigator . user agent)){ } else { } } catch(e){ } } } & lt;/script & gt;