帝国CMS移动站自动适配跳转,首页/栏目频道/内容页各不同

2024-03-16
//首页
<script type=”text/javascript”>
try {
var urlhash = window.location.hash;
console.log(urlhash);
if (!urlhash.match("fromapp"))
{
if((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)))
{
window.location="https://m.XXXX.com/";
}
}
}
catch(err)
{
}
</script>
<meta name="mobile-agent" content="format=xhtml;url=https://m.XXXX.com/">
//列表页
<script type="text/javascript">
try {
var urlhash = window.location.hash;
console.log(urlhash);
if (!urlhash.match("fromapp"))
{
if((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)))
{
window.location="https://m.XXXX.com<?=sys_ReturnBqClassUrl($class_r[$GLOBALS[navclassid]]);?>";
}
}
}
catch(err)
{
}
</script>
<meta name="mobile-agent" content="format=xhtml;url=https://m.XXXX.com<?=sys_ReturnBqClassUrl($class_r[$GLOBALS[navclassid]]);?>">
//内容页
<script type="text/javascript">
try {
var urlhash = window.location.hash;
console.log(urlhash);
if (!urlhash.match("fromapp"))
{
if((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)))
{
window.location="https://m.XXXX.com[!--titleurl--]";
}
}
}
catch(err)
{
}
</script>
<meta name="mobile-agent" content="format=xhtml;url=https://m.XXXX.com[!--titleurl--]">
//首页 <script type=”text/javascript”> try { var urlhash = window.location.hash; console.log(urlhash); if (!urlhash.match("fromapp")) { if((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i))) { window.location="https://m.XXXX.com/"; } } } catch(err) { } </script> <meta name="mobile-agent" content="format=xhtml;url=https://m.XXXX.com/"> //列表页 <script type="text/javascript"> try { var urlhash = window.location.hash; console.log(urlhash); if (!urlhash.match("fromapp")) { if((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i))) { window.location="https://m.XXXX.com<?=sys_ReturnBqClassUrl($class_r[$GLOBALS[navclassid]]);?>"; } } } catch(err) { } </script> <meta name="mobile-agent" content="format=xhtml;url=https://m.XXXX.com<?=sys_ReturnBqClassUrl($class_r[$GLOBALS[navclassid]]);?>"> //内容页 <script type="text/javascript"> try { var urlhash = window.location.hash; console.log(urlhash); if (!urlhash.match("fromapp")) { if((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i))) { window.location="https://m.XXXX.com[!--titleurl--]"; } } } catch(err) { } </script> <meta name="mobile-agent" content="format=xhtml;url=https://m.XXXX.com[!--titleurl--]">
//首页
<script type=”text/javascript”>
try {
	var urlhash = window.location.hash;
	console.log(urlhash);
	if (!urlhash.match("fromapp"))
	{
		if((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)))
		{
			window.location="https://m.XXXX.com/";
		}
	}
}
catch(err)
{
}
</script>
<meta name="mobile-agent" content="format=xhtml;url=https://m.XXXX.com/">


//列表页
<script type="text/javascript">
try {
	var urlhash = window.location.hash;
	console.log(urlhash);
	if (!urlhash.match("fromapp"))
	{
		if((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)))
		{
			window.location="https://m.XXXX.com<?=sys_ReturnBqClassUrl($class_r[$GLOBALS[navclassid]]);?>";
		}
	}
}
catch(err)
{
}
</script>
<meta name="mobile-agent" content="format=xhtml;url=https://m.XXXX.com<?=sys_ReturnBqClassUrl($class_r[$GLOBALS[navclassid]]);?>">


//内容页
<script type="text/javascript">
try {
	var urlhash = window.location.hash;
	console.log(urlhash);
	if (!urlhash.match("fromapp"))
	{
		if((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)))
		{
			window.location="https://m.XXXX.com[!--titleurl--]";
		}
	}
}
catch(err)
{
}
</script>
<meta name="mobile-agent" content="format=xhtml;url=https://m.XXXX.com[!--titleurl--]">
相关内容
最新

坚持的力量

wordpress建站,视频剪辑拍摄,动画制作