ASP判断是手机还是电脑PC访问网站
						
						
						
						
							<%
Function MobileOrPC()
If instr(LCase(request.servervariables("http_user_agent")),"iphone")>0
 or instr(LCase(request.servervariables("http_user_agent")),"android")>0
 or instr(LCase(request.servervariables("http_user_agent")),"mobile")>0 Then
MobileOrPC=true
else
MobileOrPC=false
End If
End Function
IF MobileOrPC Then
response.write "手机访问"
ELSE
response.write "电脑访问"
END IF
%>
欢迎进行交流,QQ群号:59103908,作者:JAES
						
						
					 
					上一篇:jquery实现对联广告代码
					下一篇:asp 去除最后一个字符的代码
					 讨论数量:0