识别wap和web客户端浏览器

来源:互联网 发布:淘宝店铺差评怎么删除 编辑:程序博客网 时间:2024/06/05 20:55
asp代码
<%
'+--------------------------------------------------------+
'| 识别WAP或WEB客户端浏览器 (asp版本)
'| 作者: 石头 (stonemx@163.com | www.stonemx.com)                
'+--------------------------------------------------------+
Option Explicit
dim GuestUrl
if instr(Request.ServerVariables("http_accept"),"wap")>0  then
    GuestUrl="http://WAP网站地址"
else
    GuestUrl="http://WEB网站地址"
end if
Response.Redirect(GuestUrl)
%>
原创粉丝点击