虚位以待(AD)
虚位以待(AD)
首页 > CMS教程 > phpcms > phpcms v9自动跳转到wap手机站的方法

phpcms v9自动跳转到wap手机站的方法
类别:phpcms   作者:码皇   来源:互联网   点击:

phpcms v9自动跳转到wap手机站的方法方法很简单,只需在模板的head head之间添加如下代码即可 meta http-equiv="mobile-agent" content="format=xhtml;url=http: m moke8 com " script type="text javasc ,魔客吧
phpcms v9自动跳转到wap手机站的方法方法很简单,只需在模板的<head></head>之间添加如下代码即可
<meta http-equiv="mobile-agent" content="format=xhtml;url=http://m.moke8.com/">
<script type="text/javascript">if(window.location.toString().indexOf('pref=padindex') != -1){}else{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|Windows Phone|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){window.location.href="http://m.
moke8.com";}else if(/iPad/i.test(navigator.userAgent)){}else{}}catch(e){}}}}</script>
相关热词搜索: phpcms v9自动跳转到wap手机站的方法