用于检测IE的脚本,如果不是重定向 [英] Script to detect IE, if not redirect
问题描述
嗨大家好,
我在网上搜索了一个脚本,检测他们是否有任何其他浏览器,然后IE 4及以上版本,它需要转到
www / domain.com / other_browsers /
我确定它可以完成,但无法找到确切的脚本。我发现
变种,但真的需要''如果不是IE,那么移动到上面的网址''。
感谢所有帮助:)
詹姆斯
Hi Guys,
I have searched the web for a script that detects if they have any
other browser then IE 4 and above, it needs to go to
www/domain.com/other_browsers/
Im sure it can be done, but cant find the exact script. I have found
variations, but really need ''if not IE then move to the above url''.
Thanks for all help :)
James
推荐答案
James写道:
James wrote:
大家好,
我在网上搜索了一个脚本,检测他们是否有其他浏览器,然后是IE 4及以上版本,它需要转到
www / domain.com / other_browsers /
为什么?
我确定它可以完成,但无法找到确切的脚本。我找到了
变种,但真的需要''如果不是IE,那么移动到上面的网址''。
我打赌它不可靠,可靠。
感谢所有帮助:)
Hi Guys,
I have searched the web for a script that detects if they have any
other browser then IE 4 and above, it needs to go to
www/domain.com/other_browsers/
Why?
Im sure it can be done, but cant find the exact script. I have found
variations, but really need ''if not IE then move to the above url''.
I bet it can''t, reliably be done.
Thanks for all help :)
停止尝试确定我的浏览器,它最终会失败。什么
你有理由歧视非IE浏览器吗?可能会找到一个
的解决方案。 (确实*不包括浏览器
检测)。阅读有关浏览器检测的常见问题解答(链接在sig中)
一般。
-
Randy >
机会有利于准备好的思想
comp.lang.javascript常见问题 - http://jibbering.com/faq/
Stop trying to determine my browser, it will ultimately fail. What
reason do you have for discriminating against non-IE browsers? A
solution could probably be found. (that does *not* include browser
detection). Read the FAQ (link in sig) with regards to browser detection
in general.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/
文章< 5d ********** ****************@posting.google.com>,
ki ****** @ virgin.net 启发我们...
In article <5d**************************@posting.google.com >,
ki******@virgin.net enlightened us with...
嗨大家好,
我在网上搜索了一个检测是否有脚本的脚本他们有任何其他浏览器,然后IE 4及以上,它需要去
www / domain.com / other_browsers /
Hi Guys,
I have searched the web for a script that detects if they have any
other browser then IE 4 and above, it needs to go to
www/domain.com/other_browsers/
为什么?
我会把我的Opera设为恶搞为IE。或者关闭脚本。
使用对象检测,而不是浏览器检测。
-
- < br $> b $ b~ kaeli~
从一个人那里窃取想法是抄袭;很多人都在研究。
http:/ /www.ipwebdesign.net/wildAtHeart
http:// www。 ipwebdesign.net/kaelisSpace
Why?
I''ll just set my Opera to spoof as IE. Or turn off script.
Use object detection, not browser detection.
--
--
~kaeli~
To steal ideas from one person is plagiarism; to steal from
many is research.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
" James" <き****** @ virgin.net> schreef在bericht
新闻:5d ************************** @ posting.google.c om ...
"James" <ki******@virgin.net> schreef in bericht
news:5d**************************@posting.google.c om...
大家好,
我在网上搜索了一个脚本,检测他们是否有其他浏览器,然后IE 4及以上,它需要去
www / domain.com / other_browsers /
我相信它可以完成,但无法找到确切的脚本。我找到了
变种,但真的需要''如果不是IE,那么转移到上面的网址''。
感谢所有的帮助:)
詹姆斯
Hi Guys,
I have searched the web for a script that detects if they have any
other browser then IE 4 and above, it needs to go to
www/domain.com/other_browsers/
Im sure it can be done, but cant find the exact script. I have found
variations, but really need ''if not IE then move to the above url''.
Thanks for all help :)
James
也许这会有所帮助(有点)
isNS4 =(document.layers)? true:false;
isIE4 =(document.all&&!document.getElementById)? true:false;
isIE5 =(document.all&& document.getElementById)? true:false;
isNS6 =(!document.all&& document.getElementById)? true:false;
Maybe this helps (a bit)
isNS4 = (document.layers) ? true : false;
isIE4 = (document.all && !document.getElementById) ? true : false;
isIE5 = (document.all && document.getElementById) ? true : false;
isNS6 = (!document.all && document.getElementById) ? true : false;
这篇关于用于检测IE的脚本,如果不是重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!