<!--放置pc跳转移动-->
<script type="text/javascript">
function IsPC() {
var userAgentInfo = navigator.userAgent;
var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod","HarmonyOS"];
var flag = true;
for (var v = 0; v < Agents.length; v++) {
if (userAgentInfo.indexOf(Agents[v]) > 0) {
flag = false;
break;
}
}
return flag;
}
if (!IsPC() && window.location.hostname == 'www.funvwx.com') {
window.location.href = window.location.href.replace('www.funvwx.com', 'm.funvwx.com');
}
</script>
<!--放置移动跳转pc-->
<script type="text/javascript">function IsPC() {
var userAgentInfo = navigator.userAgent;
var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod","HarmonyOS"];
var flag = true;
for (var v = 0; v < Agents.length; v++) {
if (userAgentInfo.indexOf(Agents[v]) > 0) {
flag = false;
break;
}
}
return flag;
}
if (IsPC() && window.location.hostname == 'm.funvwx.com') {
window.location.href = window.location.href.replace('m.funvwx.com', 'www.funvwx.com');
}</script>title当内容有副标题时显示副标题,当有没有副标题时显示正标题的设置
方法1. <?php echo $navinfor['ftitle']?$navinfor['ftitle']:$navinfor['title'] ?>
方法2. <?=$navinfor['ftitle']?$navinfor['ftitle']:$navinfor['title']?>