HTML 中函数执行结果显示“Internet Browser is out of date”提示
当用户使用的浏览器版本不在 "reject" 对象中指定的支持范围内时,页面上会显示 "Did you know that your Internet Browser is out of date?" 的提示信息。\n\n\n<script type="text/javascript">\n$(document).ready(function(){\n\t $.reject({\n\t\t reject: {\n\t\t\t msie: 10,\n\t\t\t /* msie9:true,\n\t\t\t msie8:true,\n\t\t\t msie7:true, */\n\t\t\t msie8:false,\n\t\t\t msie7:false,\n\t\t\t msie6:false,\n\t\t\t firefox:35,\n\t\t\t chrome:40,\n\t\t\t unknown: false\n\t\t },\n\t\t display: ['firefox','chrome','safari','msie'],\n\t\t browserShow: true,\n\t\t browserInfo: {\n\t\t\t chrome: {\n\t\t\t\t text: 'Google Chrome',\n\t\t\t\t url: 'http://www.google.com/chrome/'\n\t\t\t },\n\t\t\t firefox: {\n\t\t\t\t text: 'Mozilla Firefox',\n\t\t\t\t url: 'http://www.mozilla.com/firefox/'\n\t\t\t },\n\t\t\t safari: {\n\t\t\t\t text: 'Safari',\n\t\t\t\t url: 'http://www.apple.com/safari/download/'\n\t\t\t },\n\t\t\t opera: {\n\t\t\t\t text: 'Opera',\n\t\t\t\t url: 'http://www.opera.com/download/'\n\t\t\t },\n\t\t\t msie: {\n\t\t\t\t text: 'Internet Explorer',\n\t\t\t\t url: 'http://www.microsoft.com/windows/Internet-explorer/'\n\t\t\t }\n\t\t },\n\t\t header: 'Did you know that your Internet Browser is out of date?',\n\t\t paragraph1: 'You are currently using an unsupported browser',\n\t\t paragraph2: 'To proceed, please upgrade your browser to the latest version',\n\t\t //closeMessage: 'Close this window at your own demise!',\n\t\t close: false,\n\t\t closeESC: false,\n\t\t closeCookie: false,\n\t\t imagePath: '/images/browsers/',\n\t\t overlayBgColor: '#000',\n\t\t overlayOpacity: 0.8,\n\t\t fadeInTime: 'fast',\n\t\t analytics: false\n\t });\n});\n
原文地址: https://www.cveoy.top/t/topic/mY8t 著作权归作者所有。请勿转载和采集!