JavaScript:遇 IE6 自动重定向
我承认我太野蛮了,详情看看这里页面 http://ygs.im/ie6 ,所以改用 JS 代替 PHP 来把 IE6 用户转到特定页面,主要是担心影响到搜索引擎收录,只要停用 JS 就能访问本站所有页面,谢谢。
var theUrl=window.location.href; //读取URL if($.browser.version=="6.0" && theUrl!="http://ygs.im/ie6" ){ window.location="http://ygs.im/ie6"; }
想看看 PHP 版?在这里
2010年 8月 18日