屏蔽某些地区显示效果22

<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>  
<script type="text/javascript">  
//document.write(returnCitySN["cip"]+','+returnCitySN["cname"]);
var s=returnCitySN["cname"].substring(0,6);
var d=returnCitySN["cname"].substring(0,3);
if ((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))) {
   
    if(d=='北京市' || d=='上海市'|| s=='广东省深圳市' ){
      
    window.location.href="";  //
    }else{
        
        
    }

   
}else{
 

}


</script>

 

posted @ 2018-06-16 10:30  MY0101  阅读(186)  评论(0编辑  收藏  举报