Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>How about this? Puts a polite notification bar at the top of the page. (Courtesy <a href="http://think2loud.com/build-an-unsupported-browser-warning-with-jquery/" rel="nofollow noreferrer">think2loud</a>, see this link for full source, sample, css, etc.).</p> <pre><code>function badBrowser(){ if($.browser.msie &amp;&amp; parseInt($.browser.version) &lt;= 6){ return true;} return false; } function getBadBrowser(c_name) { if (document.cookie.length&gt;0) { c_start=document.cookie.indexOf(c_name + "="); if (c_start!=-1) { c_start=c_start + c_name.length+1; c_end=document.cookie.indexOf(";",c_start); if (c_end==-1) c_end=document.cookie.length; return unescape(document.cookie.substring(c_start,c_end)); } } return ""; } function setBadBrowser(c_name,value,expiredays) { var exdate=new Date(); exdate.setDate(exdate.getDate()+expiredays); document.cookie=c_name+ "=" +escape(value) + ((expiredays==null) ? "" : ";expires="+exdate.toGMTString()); } if(badBrowser() &amp;&amp; getBadBrowser('browserWarning') != 'seen' ){ $(function(){ $("&lt;div id='browserWarning'&gt;You are using an unsupported browser. Please switch to &lt;a href='http://getfirefox.com'&gt;FireFox&lt;/a&gt;, &lt;a href='http://www.opera.com/download/'&gt;Opera&lt;/a&gt;, &lt;a href='http://www.apple.com/safari/'&gt;Safari&lt;/a&gt; or &lt;a href='http://www.microsoft.com/windows/downloads/ie/getitnow.mspx'&gt;Internet Explorer 7&lt;/a&gt;. Thanks!&amp;nbsp;&amp;nbsp;&amp;nbsp;[&lt;a href='#' id='warningClose'&gt;close&lt;/a&gt;] &lt;/div&gt; ") .css({ backgroundColor: '#fcfdde', 'width': '100%', 'border-top': 'solid 1px #000', 'border-bottom': 'solid 1px #000', 'text-align': 'center', padding:'5px 0px 5px 0px' }) .prependTo("body"); $('#warningClose').click(function(){ setBadBrowser('browserWarning','seen'); $('#browserWarning').slideUp('slow'); return false; }); }); } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload