<script type= "Text/javascript" >function getrequest () {var url = location.search;//??? url?? "?"???????? var therequest = new Object (); if (Url.indexof ("?") =-1) {var str = URL.SUBSTR (1); STRs = Str.split ("&"); for (var i = 0; i < strs.length; i + +) {Therequest[strs[i].split ("=") [0]] = unescape (strs[i].split ("=") [1]);}} return therequest; }var request = new Object (); request = Getrequest (); Checkwidth (); function Checkwidth () {//if (Undefined! = request["account"] && undefined! = request["Paihangbang"] && un Defined! = request["BENLUNMINGCI"] && undefined! = request["Tunshirenshu"] && undefined! = request[" Benlunzuidatizhong "]) {//window.location.href =" share.html "+location.search;//return;//}var math = Math.floor ( Math.random () *10); if (/applewebkit.*mobile/i.test (navigator.useragent) | | (/midp| symbianos| nokia| Samsung| Lg| nec| tcl| alcatel| bird| dbtel| dopod| philips| haier| lenovo| mot-| nokia| sonyericsson| sie-| amoi| Zte/.test (Navigator.useragenT)) {if (Window.location.href.indexOf ("mobile") <0) {try{if (/android|webos|iphone|ipod| Blackberry/i.test (navigator.useragent)) {}else if (/ipad/i.test (navigator.useragent)) {}else{}if (undefined! = request["account"] && undefined! = request["id"]) {window.location.href = "index_mobile_share.html" + Location.search;return;} Else{if (Math <= 5) {window.location.href= "index_mobile.html" +location.search;return;} else{window.location.href= "index_mobilea.html" +location.search;return;}} catch (e) {}}}else{if (Math <= 5) {window.location.href= "index_pc.html" +location.search;} else{window.location.href= "index_pca.html" +location.search;}} </script>
JS to determine the phone or PC and jump to related pages