我目前正在使用它来检测访问者是否安装了Flash,如果不是,我假设他们是iPhone用户,但现在看来它并不总是像我希望的那样工作,因为有时他们会重定向到我的网站的Flash版本和某个谁得到安装也闪重定向到我的网站的iPhone版本的人如何检测是否是iOS设备并重定向?
<!DOCTYPE html>
<html>
<head>
<script src="http://www.featureblend.com/flash_detect_1-0-4/flash_detect.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
if(!FlashDetect.installed){
window.location = "?flash=false";
}else{
window.location = "?flash=true";
}
</script>
</head>
事情是我将如何检测,如果他们是用iPhone/iPad/iPod的/ AppleTV的类似的东西,并将它们重定向到flash = false URL,如果它们不属于上述情况,则会重定向到flash = true?
我试图找到,但确实无法找到确切的我要找的
谢谢你,圣诞快乐给大家。
您使用什么服务器端语言? – Virendra 2011-12-25 20:26:23
@Virendra我使用index.php – Ali 2011-12-25 20:29:51
如果您使用PHP,您也可以使用.htaccess来做到这一点 – Virendra 2011-12-25 20:33:25