`

低版本 Internet Explorer 淘汰行动

阅读更多

【前言】

   介绍个低版本 Internet Explorer 淘汰行动,这里我直接把源码放过来,想用的直接在文档里判断IE版本。然后重定向页面即可

 

【主体】

      自2014年4月8日起,Microsoft 不再为 Windows XP 和 Internet Explorer 8 及以下版本提供相应支持和更新。如果你继续使用这些,你将可能受到病毒、间谍软件和其他恶意软件的攻击,无法确保个人信息的安全。请参阅 Microsoft 关于 Windows XP 支持已经结束的说明。

      做法就是不再兼容IE8及以下版本,当使用 Internet Explorer 过期版本(IE6、IE7、IE8 或使用该内核的浏览器)的用户访问时提示浏览器升级。

      把这段代码添加在网站头部代码</head>之前,当IE8及以下版本浏览器(包括使用IE8及以下版本内核的浏览器)访问网站的时候将自动跳转到浏览器升级提示页面。

      代码:

<!--[if lte IE 8]><script>window.location.href='./alert.html';</script><![endif]-->

   ie.html:

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8"/>
    <title>请升级你的浏览器</title>
    <link rel="shortcut icon" href="../static/imgs/author.jpg"/>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <meta name="renderer" content="webkit">
    <base target="_blank"/>
    <style type="text/css">
        body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, button, input, textarea, th, td {
            margin: 0;
            padding: 0
        }

        a {
            text-decoration: none;
            color: #0072c6;
        }

        a:hover {
            text-decoration: none;
            color: #004d8c;
        }

        body {
            width: 960px;
            margin: 0 auto;
            padding: 10px;
            font-size: 13px;
            line-height: 20px;
            color: #454545;
            font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', DengXian, SimSun, 'Segoe UI', Tahoma, Helvetica, sans-serif;
        }

        h1 {
            font-size: 40px;
            line-height: 80px;
            font-weight: 200;
            margin-bottom: 10px;
        }

        h2 {
            font-size: 20px;
            line-height: 25px;
            font-weight: 500;
            margin: 10px 0;
        }

        p {
            margin-bottom: 10px;
        }

        .line {
            clear: both;
            width: 100%;
            height: 1px;
            overflow: hidden;
            line-height: 1px;
            border-bottom: 1px solid #ccc;
            margin: 10px 0 30px;
        }

        img {
            width: 34px;
            height: 34px;
            border: 0;
            float: left;
            margin-right: 10px;
        }

        span {
            display: block;
            font-size: 12px;
            line-height: 12px;
        }

        .clean {
            clear: both;
        }

        .browser {
            padding: 10px 0;
        }

        center a {
            color: white;
        }

        .browser li {
            width: 180px;
            float: left;
            list-style: none;
        }

        .browser .new {
            background: url(http://www.zuifengyun.com/images/new.png);
            width: 23px;
            height: 9px;
            display: inline-block;
        }
    </style>
</head>
<body>
<h1>是时候升级你的浏览器了</h1>
<p>你正在使用 Internet Explorer 的过期版本(IE6、IE7等内核的浏览器或使用chrome的兼容模式)。这意味着在升级浏览器前,你将无法访问此网站。</p>
<div class="line"></div>
<h2>请注意:Windows XP 及 IE6、IE7的支持已经结束</h2>
<p>自 2014 年 4 月 8 日起,Microsoft 不再为 Windows XP 和 Internet Explorer 8
    及以下版本提供相应支持和更新。如果你继续使用这些,你将可能受到病毒、间谍软件和其他恶意软件的攻击,无法确保个人信息的安全。请参阅 <a
            href="http://windows.microsoft.com/zh-cn/windows/end-support-help">Microsoft 关于 Windows XP 支持已经结束的说明</a> 。
</p>
<div class="line"></div>
<h2>更先进的浏览器</h2>
<p>推荐使用以下浏览器的最新版本。如果你的电脑已有以下浏览器的最新版本则直接使用该浏览器访问<b id="referrer"></b>即可。</p>
<ul class="browser">
    <li><a href="http://dlsw.baidu.com/sw-search-sp/soft/9d/14744/ChromeStandaloneSetup.1408587465.exe"><img
            src="http://www.zuifengyun.com/images/chrome.jpg" alt="谷歌浏览器" width="34" height="34"/> 谷歌浏览器<span>Google Chrome</span></a>
    </li>
    <li><a href="http://download.firefox.com.cn/releases/stub/official/zh-CN/Firefox-latest.exe"><img
            src="http://www.zuifengyun.com/images/firefox.jpg" alt="火狐浏览器" width="34" height="34"/> 火狐浏览器<span>Mozilla Firefox</span></a>
    </li>
    <li><a href="http://windows.microsoft.com/zh-cn/internet-explorer/download-ie"><img
            src="http://www.zuifengyun.com/images/ie.jpg" alt="IE浏览器" width="34" height="34"/> IE浏览器<span>Internet Explorer</span></a>
    </li>
    <li><a href="http://dl.client.baidu.com/union/getbdbrowser.php?tn=newbdie"><img
            src="http://www.zuifengyun.com/images/baiduchrome.png" alt="百度浏览器" width="34" height="34"/> 百度浏览器 <span
            class="new"></span> <span>Baidu Explorer</span></a></li>
    <div class="clean"></div>
</ul>
<div class="line"></div>
<h2>为什么会出现这个页面?</h2>
<p>如果你不知道升级浏览器是什么意思,请请教一些熟练电脑操作的朋友。如果你使用的不是IE6/7,而是360浏览器、QQ浏览器、搜狗浏览器等,出现这个页面是因为你使用的不是该浏览器的最新版本,升级至最新即可。</p>
<div class="line"></div>
<h2>一起抵制IE6、IE7</h2>
<p>
    为了兼容这个曾经的浏览器霸主,网页设计人员需要做大量的代码工作,而且最终效果也始终不能让人满意。对于普通用户而言,低版本IE更是一个岌岌可危的安全隐患,在Windows历史上几次大的木马病毒事件都是利用IE漏洞进行传播。所以,请和我们一起抵制IE6、IE7!<a
        href="http://www.zuifengyun.com/kill-old-ie.html">如何添加IE浏览器升级提示?</a></p>
<center>
    <script>// <![CDATA[
    var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
    document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F13057e83f4c6d417a6123ba4de0ee2b6' type='text/javascript'%3E%3C/script%3E"));
    // ]]></script>
    <center>
</body>
</html>

 

      网站在没有兼容的低版本IE中往往都是错版,所以检测到是低版本IE时直接跳转到升级页面,节省了不必要的资源加载,降低了网站服务器开销。去除冗余字符之后,便有了这段简洁优雅的代码。

      为了兼容这个曾经的浏览器霸主,网页设计人员需要做大量的代码工作,而且最终效果也始终不能让人满意。对于普通用户而言,低版本IE更是一个岌岌可危的安全隐患,在Windows历史上几次大的木马病毒事件都是利用IE漏洞进行传播。所以,请和我们一起抵制IE6、IE7、IE8!

      自2014年4月到现在短短几个月时间里,已有众多童鞋主动加入这个行列,每天为数以千计的低版本IE用户提示升级,现在醉风云呼吁更多的人加进来,一起抵制低版本IE!

 

 

 

 

 

.

 

分享到:
评论

相关推荐

    Internet Explorer版本列表

    一个列表 罗列Internet Explorer 1.0 到7.0所有小版本号

    Internet Explorer10-Windows7绿化版本

    "Internet Explorer 10-Windows 7绿化版本" 指的是针对Windows 7操作系统的一个特别优化的Internet Explorer 10浏览器版本。绿化版本通常指的是不需要正式安装,只需解压就能使用的软件,它不写入系统注册表,避免对...

    Internet Explorer 5.5正式版安装程序,适合Windows 98

    Internet Explorer 5.5正是这个时期的代表产品,它是IE系列的一个关键版本,对当时的互联网用户有着深远的影响。 **Internet Explorer 5.5的发布背景** 在1997年,Microsoft推出了Internet Explorer 5,这是一个...

    Internet explorer 11离线安装包

    标题 "Internet explorer 11离线安装包" 指的是微软公司开发的网页浏览器Internet Explorer的第11个版本的离线安装程序。这个版本是专为Windows 7操作系统设计的,允许用户在没有互联网连接的情况下安装浏览器。离线...

    Microsoft Internet Explorer 4.01 (4.71.1712) [Simpl. Chinese].7z

    这款浏览器是Internet Explorer系列的第四个主要版本,具有许多当时先进的特性,对后续版本和整个Web标准的发展产生了深远影响。 Internet Explorer 4.01 包含了一系列重要的更新和改进,例如: 1. **ActiveX**:...

    Internet Explorer 9.zip

    Internet Explorer 9(IE9)是2011年发布的重要版本,它针对当时的技术趋势进行了革新。以下是IE9的一些关键特性: 1. **硬件加速**:IE9充分利用了计算机的图形处理单元(GPU),为网页渲染提供硬件加速,显著提高...

    Internet Explorer已停止工作

    更新至最新版本的Internet Explorer可以修复已知的漏洞和错误,提高兼容性和稳定性。如果可能,考虑升级到更现代的浏览器,如Microsoft Edge,它采用了更先进的技术,性能更优,且对旧版IE中的一些问题进行了改进。 ...

    无法安装 Windows Internet Explorer

    标题 "无法安装 Windows Internet Explorer" 描述了一个用户在尝试安装这款经典的网页浏览器时遇到的问题。在Windows操作系统中,Internet Explorer(简称IE)是内置的浏览器,但有时由于各种原因,安装过程可能会...

    Internet Explorer 11.0.9600.16428 For Windows 7.zip

    标题"Internet Explorer 11.0.9600.16428 For Windows 7.zip"表明这是一个针对Windows 7操作系统的Internet Explorer浏览器的更新包,具体版本号为11.0.9600.16428。Internet Explorer(简称IE)是微软公司开发的一...

    恢复桌面Internet Explorer图标

    恢复桌面Internet Explorer图标

    Internet Explorer 11 先决条件更新x86_x64

    当您为 Windows 7 安装 Internet Explorer 11 时,安装程序会尝试自动安装某些系统必备组件。如果此安装过程中出现故障,Internet Explorer 将停止安装过程。 在此情况下,为 Windows 7 安装 Internet Explorer 11 ...

    去掉IE提示:internet explorer 已限制此网页运行脚本或Activex控件

    在使用Internet Explorer浏览器访问某些包含脚本或ActiveX控件的网页时,用户可能会遇到一个警告提示:“Internet Explorer已限制此网页运行脚本或ActiveX控件”,这通常是为了防止潜在的安全风险而采取的一项保护...

    Internet Explorer 11 下载 Windows 系统 各版本下载

    在本篇文章中,我们将深入探讨有关Internet Explorer 11(IE11)浏览器在Windows系统下的各个版本的下载与安装细节。Internet Explorer是微软推出的一款经典的网页浏览器,它伴随了无数用户度过了互联网发展的黄金...

    Internet Explorer 7.0 培训教程

    《Internet Explorer 7.0 培训教程》是一份详尽指导用户理解和操作IE7浏览器的教程。此教程旨在帮助用户掌握IE7的基本界面、特性、常用功能以及设置,解决日常使用过程中遇到的问题。 IE7.0的安装是教程的起点,...

    Advanced Internet Explorer Password Recovery

    Advanced IE (Internet Explorer) Password Recovery is a program to Recover passwords to web sites saved in Microsoft Internet Explorer (in local password list), as well as AutoComplete strings (form ...

    右边阻止显示Internet Explorer搜索框

    在Windows操作系统中,Internet Explorer(简称IE)是微软公司推出的一款经典的网页浏览器。"右边阻止显示Internet Explorer搜索框"这个话题涉及到的是用户在使用IE浏览器时遇到的一个常见问题,即搜索框未正常显示...

    Internet Explorer 9

    标题"Internet Explorer 9"指的是微软公司开发的一款网页浏览器——Internet Explorer的第九个主要版本。这个版本在2011年发布,是微软在浏览器市场上的一次重要更新,它引入了许多新的特性和改进,旨在提高浏览速度...

    Internet Explorer密码Internet Explorer.zip

    描述中提到"Internet Explorer 6代,可以在32位系统上运行,主要是收藏,怀古。这个是Windows XP Professional版本的",这部分信息告诉我们讨论的是历史悠久的IE6浏览器,一个在32位操作系统(尤其是Windows XP ...

    Internet Explorer 8卸载

    Internet Explorer是微软公司开发的一款网页浏览器,IE8是其早期版本之一,发布于2009年,旨在为用户提供更安全、更快速、更兼容的上网体验。然而,随着时间的推移,新的技术和标准不断涌现,IE8逐渐显得力不从心,...

    Internet Explorer缓存浏览器

    标题 "Internet Explorer缓存浏览器" 指的是一个专门用于查看和管理Microsoft Internet Explorer(简称IE)浏览器缓存的工具。缓存是浏览器为提高网页加载速度而存储的临时文件和数据,它保存了用户访问过的网页的...

Global site tag (gtag.js) - Google Analytics