码迷,mamicode.com
首页 > 其他好文 > 详细

织梦模板dedecms pc端首页必备调用代码

时间:2016-11-25 11:38:51      阅读:200      评论:0      收藏:0      [点我收藏+]

标签:format   hone   tostring   meta   织梦   har   window   .com   cut   

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>{dede:global.cfg_webname/}</title>
<meta name="description" content="{dede:global.cfg_description/}"/>
<meta name="keywords" content="{dede:global.cfg_keywords/}"/>
<link rel="canonical" href="http://axiangmixianjm.com" />
<link rel="shortcut icon" href="http://axiangmixianjm.com/favicon.ico">
<link rel="bookmark" href="http://axiangmixianjm.com/favicon.ico">
<meta http-equiv="mobile-agent" content="format=xhtml;url=http://m.axiangmixianjm.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.axiangmixianjm.com/";}else if(/iPad/i.test(navigator.userAgent)){}else{}}catch(e){}}}}</script>

织梦模板dedecms pc端首页必备调用代码

标签:format   hone   tostring   meta   织梦   har   window   .com   cut   

原文地址:http://www.cnblogs.com/shisanshu/p/6100747.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!