您的位置:首页 > 编程语言 > ASP

识别wap和web客户端浏览器

2009-09-11 11:17 246 查看
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)
%>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  wap web 浏览器 asp
相关文章推荐