网络营销师_王健
首页 网络营销技巧 网络安全 倒腾 整理 说说
  • 首页
  • 网络营销技巧
  • 网络安全
  • 倒腾
  • 整理
  • 说说

日志归档

2017年9月

源码

我们经常使用js跳转来判断手机设备然后进行跳转,不过跳转终究是跳转,而如果使用程序来判断设备进行输出代码,不进行URL跳转岂不是更好,以下是php判断是否为手机,如果为手机就输出指定手机页面,如果不是就输出指定pc页面<?php//判断是否是手机functionisMobile(){$useragent=isset($_SERVER['HTTP_USER_AGENT'])?$_SERVER['HTTP_USER_AGENT']:'';$useragent_commentsblock=preg_match('|\(.*?\)|',$useragent,$matches)>0?$matches[0]:'';functionCheckSubstrs($substrs,$text){foreach($substrsas$substr)if(false!==strpos($text,$substr)){returntrue;}returnfalse;}$mobile_os_list=array('GoogleWirelessTranscoder','WindowsCE','WindowsCE','Symbian','Android','armv6l','armv5','Mobile','CentOS','mowser','AvantGo','OperaMobi','J2ME/MIDP','Smartphone','Go.Web','Palm','iPAQ');$mobile_token_list=array('Profile/MIDP','Configuration/CLDC-','160×160','176×220','240×240','240×320','320×240','UP.Browser','UP.Link','SymbianOS','PalmOS','PocketPC','SonyEricsson','Nokia','BlackBerry','Vodafone','BenQ','Novarra-Vision','Iris','NetFront','HTC_','Xda_','SAMSUNG-SGH','Wapaka','DoCoMo','iPhone','iPod');$found_mobile=CheckSubstrs($mobile_os_list,$useragent_commentsblock)||CheckSubstrs($mobile_token_list,$useragent);if($found_mobile){returntrue;}else{returnfalse;}}if(isMobile()){include("wap.html");exit();}else{include("index.html");}?>

php判断手机并输出手机页面
2017-9-17 2483 0
软件

shockwaveflash现在可能很忙?到底有多忙,总是忙,访问百度也忙,访问常见网站经常忙,到底有多忙,有我忙吗?相信很多人在使用火狐的时候遇到这个问题,这个问题是出现火狐安装了flash插件后出现的,原因是火狐引用了沙盒模式导致,参考地址:http://mozilla.com.cn/thread-34109-1-1.html解决方法,进入工具--附加组件--插件,找到shockwaveflash选项,把拦截危险flash的勾选去掉。官方解释:https://support.mozilla.org/zh-CN/kb/flash-blocklists

火狐经常出现shockwave flash 现在可能很忙
2017-9-1 4590 0
订阅 简介
Powered by Emlog | Theme by DYBOY
鄂ICP备2022018013号-1