[英]redirect from blogger to my mobile site
how can I redirect from blogger to my mobile site ? 如何从博客作者重定向到我的移动网站?
I have try to put some codes in the and it doesnt work. 我试图将一些代码放进去,但它不起作用。
http://www.designyourway.net/blog/resources/detecting-and-redirecting-mobile-users/ http://www.designyourway.net/blog/resources/detecting-and-redirecting-mobile-users/
I think You want to detect mobile devices using Javascript
我想您想使用
Javascript
检测移动设备
Add: 加:
<script>
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
window.location.href="http://My-Mobile-Site.com";
}
</script>
between your <head>
tags, Now whenever someone visits your blog with a mobile device they will redirected to your mobile site 在
<head>
标记之间,现在只要有人使用移动设备访问您的博客,他们就会重定向到您的移动网站
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.