Whic是接下来要做的最好办法:我有正规的网站手机网站检测
,让说:www.regular.com(例如) 和移动网站:mobile.regular.com
如果有人通过手机获得在正规网站(iPhone,Android和等..),它进入到页面谁给2种选择:
1)获取定期现场
2)获得在手机网站
到目前为止,我做了下一个:
<a href="http://mobile.regular.com">To Mobile site</a>
<a id="fullsite" href="http://regular.com">To regular site</a>
<script type="text/javascript">
document.getElementById('fullsite').addEventListener('click',gotoFullSite,true);
function gotoFullSite(e) {
e.preventDefault();
setCookie("viewFullSite", true, 1);
location.href = this.getAttribute('http://regular.com');
}
</script>
如果用户是从移动还是不是我需要把正规网站,以自动识别?这样做的方式是,如果有人想反正显示常规站点,即使通过移动设备?
如果其重要:
的移动网站是在WordPress的
定期到现场是在ASP.NET C#
感谢所有Finnaly我找到了答案在这里:[S解决方案](http://www.malphursinteractive.com/view-full-site-mobile-redirect-script/) – Oshrib