My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Links
  • External links
  • blog

让IE6退出历史的舞台吧,让前台开发的生活更美好一点吧。

方案1:强制不让浏览


这个项目的启发,但那个项目在ie6下效果很不理想,于是自己重新做了一个。js功底有限,所以从Google那加载了jQuery(如果已经载入过了,则不会重复载入),同时使用了jqmodal插件。

使用这个脚本后,会在当前页覆盖一层(lightbox),阻止用户进一步操作,并提示升级浏览器。

如果下面这张图片看不见,请自觉翻墙

使用方法:在</body>之前加入这么一句即可

<!--[if lte IE 6]><script src="http://anti-ie6.googlecode.com/svn/trunk/script/warn1.js"></script><![endif]-->

如果是gb2312的编码,加上这一段

<!--[if lte IE 6]><script src="http://anti-ie6.googlecode.com/svn/trunk/script/warn1_gb2312.js"></script><![endif]-->

方案2:顶部提示


其实就是把这个项目搬了过来,方便使用

使用方法:在</body>之前加入这么一段

<!--[if IE 6]>
<script type="text/javascript"> 
/*Load jQuery if not already loaded*/ if(typeof jQuery == 'undefined'){ document.write("<script type=\"text/javascript\"   src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js\"></"+"script>"); var __noconflict = true; } 

var IE6UPDATE_OPTIONS = {
	icons_path: "http://anti-ie6.googlecode.com/svn/trunk/img/update/"
}
</script>
<script type="text/javascript" src="http://anti-ie6.googlecode.com/svn/trunk/script/warn2.js"></script>
<![endif]-->

gb2312的用户换成这段

<!--[if IE 6]>
<script type="text/javascript"> 
/*Load jQuery if not already loaded*/ if(typeof jQuery == 'undefined'){ document.write("<script type=\"text/javascript\"   src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js\"></"+"script>"); var __noconflict = true; } 

var IE6UPDATE_OPTIONS = {
	icons_path: "http://anti-ie6.googlecode.com/svn/trunk/img/update/"
}
</script>
<script type="text/javascript" src="http://anti-ie6.googlecode.com/svn/trunk/script/warn2_gb2312.js"></script>
<![endif]-->
Powered by Google Project Hosting