成都网站建设设计

将想法与焦点和您一起共享

zblog手机访问 zblog手机客户端

zblog 手机页添加统计代码

这是zblog的bug,如果是加入javascript的统计代码,web浏览是正常的。楼下说的方式即可。

创新互联建站专业为企业提供无为网站建设、无为做网站、无为网站设计、无为网站制作等企业网站建设、网页设计与制作、无为企业网站模板建站服务,10余年无为做网站经验,不只是建网站,更提供有价值的思路和整体网络服务。

但手机无法浏览内容页,因为手机访问静态页会报javascript错误,因为有嵌套,除非你手动修改。如你看到只有一个统计代码的图标。至少我调试了半天是这样的,希望对你有帮助。

请教ASP检测手机客户端并跳转到相应页面,下面这段代码是找的,但是复制到页面里不好用,ASP我不是很懂。

假如你的网址是:

那你的Index.asp是

那你的wap.asp是

那你的代码如下:

%

Function CheckMobile()

'是否由wap转入电脑版

If Not IsEmpty(Request.ServerVariables("HTTP_REFERER")) And InStr(LCase(Request.ServerVariables("HTTP_REFERER")),"wap.asp")=0 Then

CheckMobile=False:Exit Function

End If

'是否专用wap浏览器

If InStr(LCase(Request.ServerVariables("HTTP_ACCEPT")), "application/vnd.wap.xhtml+xml") Or Not IsEmpty(Request.ServerVariables("HTTP_X_PROFILE")) Or Not IsEmpty(Request.ServerVariables("HTTP_PROFILE")) Then

CheckMobile=True:Exit Function

End If

'是否(智能)手机浏览器

Dim MobileBrowser_List,PCBrowser_List,UserAgent

MobileBrowser_List ="up.browser|up.link|mmp|iphone|android|wap|netfront|java|opera\smini|ucweb|windows\sce|symbian|series|webos|sonyericsson|sony|blackberry|cellphone|dopod|nokia|samsung|palmsource|palmos|pda|xphone|xda|smartphone|pieplus|meizu|midp|cldc|brew|tear"

PCBrowser_List="mozilla|chrome|safari|opera|m3gate|winwap|openwave"

UserAgent = LCase(Request.ServerVariables("HTTP_USER_AGENT"))

If CheckRegExp(UserAgent,MobileBrowser_List) Then

CheckMobile=True:Exit Function

ElseIf CheckRegExp(UserAgent,PCBrowser_List) Then '未知手机浏览器,其UA标识为常见浏览器,不跳转

CheckMobile=False:Exit Function

Else

CheckMobile=False

End If

End Function

If CheckMobile() Then Response.Redirect (“")

%

要想代码能用,你还需要CheckRegExp(UserAgent,MobileBrowser_List)这个函数的定义,就像上面的Function CheckMobile()一样。

zblog如何不让手机端显示网站关键词

那就需要用到判断手机端的php代码了,你可以百度搜索下php判断手机端代码,把代码修改下放到模版header.php里,做下判断手机不显示关键词。

zblog怎么在手机上发表文章

1、应用市场下载一个AndroPHP,打开,点击服务器开关。

2、zblog官网下载一个zblogPHP博客程序。

3、手机文件管理器里创建一个名字为WWW的文件夹,把程序解压文件里。

4、打开AndroPHP,点击链接,那就是服务器地址,Zblog博客创建完成,点击写作即可发表文章。


当前标题:zblog手机访问 zblog手机客户端
分享路径:http://chengdu.cdxwcx.cn/article/doiceoj.html