<div class="codetitle"> <span><a style="CURSOR: pointer" data="92176" class="copybut" id="copybut92176" onclick="doCopy('code92176')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code92176"> <br><script type="text/javascript"><BR>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))){<BR> if(window.location.href.indexOf("?mobile")<0){<BR> try{<BR> if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){<BR> window.location.href="手机页面";<BR> }else if(/iPad/i.test(navigator.userAgent)){<BR> window.location.href="平板页面";<BR> }else{<BR> window.location.href="其他移动端页面"<BR> }<BR> }catch(e){}<BR> }<BR>}<BR></script><br> </div>