function mobile_device_detect(url) { var thisOS=navigator.platform; var os=new Array("iPhone","iPod","iPad","android","Nokia","SymbianOS","Symbian","Windows Phone","Phone","Linux armv71","MAUI","UNTRUSTED/1.0","Windows CE","BlackBerry","IEMobile"); for(var i=0;i0){ //alert(window.location+window.location.toString().indexOf("//a.zeo.wtob.net")); mobile_device_detect("http://m.wenyi.toys/m_en/index.asp"); } if (window.location.toString().indexOf("//wenyitoys.com")>0){ mobile_device_detect("http://m.wenyitoys.com/m_cn/index.asp"); }*/ //mUrl="m_cn/" 或 "m_en/" function AutoGoM(mUrl){ if (window.location.toString().indexOf("//m.")<=0){ mobile_device_detect("http://m.w2w.toys/"+mUrl); }else if ((window.location.toString().indexOf("//m.")>0) && (window.location.toString().indexOf("w2w.toys/m_")<=0)){ mobile_device_detect("http://m.w2w.toys/"+mUrl); } } AutoGoM("m_cn/");