Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You could use jQuery's <a href="http://docs.jquery.com/Utilities/jQuery.browser" rel="nofollow noreferrer"><code>$.browser</code></a> in an <code>if</code> statement which executes <a href="http://docs.jquery.com/Effects/slideDown" rel="nofollow noreferrer"><code>slideDown</code></a> when the condition is met. Something like:</p> <pre><code>if ($.browser.msie &amp;&amp; $.browser.version &lt;= 6) { $('#someHiddenDivId').slideDown(); } </code></pre> <p>You can eventually use it in combination with the snippet of <a href="http://ie6nomore.com" rel="nofollow noreferrer">http://ie6nomore.com</a> :)</p> <p><strong>Edit</strong>: as per the comments, here's an <a href="http://sscce.org" rel="nofollow noreferrer">SSCCE</a>, just copy'n'paste'n'run it.</p> <pre><code>&lt;!doctype html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;title&gt;Test&lt;/title&gt; &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready(function() { if ($.browser.msie &amp;&amp; $.browser.version &lt;= 6) { $('#ie6msg').slideDown(); } }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="ie6msg" style='display: none; border: 1px solid #F7941D; background: #FEEFDA; text-align: center; clear: both; height: 75px; position: relative;'&gt;&lt;div style='position: absolute; right: 3px; top: 3px; font-family: courier new; font-weight: bold;'&gt;&lt;a href='#' onclick='javascript:this.parentNode.parentNode.style.display="none"; return false;'&gt;&lt;img src='http://www.ie6nomore.com/files/theme/ie6nomore-cornerx.jpg' style='border: none;' alt='Close this notice'/&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style='width: 640px; margin: 0 auto; text-align: left; padding: 0; overflow: hidden; color: black;'&gt;&lt;div style='width: 75px; float: left;'&gt;&lt;img src='http://www.ie6nomore.com/files/theme/ie6nomore-warning.jpg' alt='Warning!'/&gt;&lt;/div&gt;&lt;div style='width: 275px; float: left; font-family: Arial, sans-serif;'&gt;&lt;div style='font-size: 14px; font-weight: bold; margin-top: 12px;'&gt;You are using an outdated browser&lt;/div&gt;&lt;div style='font-size: 12px; margin-top: 6px; line-height: 12px;'&gt;For a better experience using this site, please upgrade to a modern web browser.&lt;/div&gt;&lt;/div&gt;&lt;div style='width: 75px; float: left;'&gt;&lt;a href='http://www.firefox.com' target='_blank'&gt;&lt;img src='http://www.ie6nomore.com/files/theme/ie6nomore-firefox.jpg' style='border: none;' alt='Get Firefox 3.5'/&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style='width: 75px; float: left;'&gt;&lt;a href='http://www.browserforthebetter.com/download.html' target='_blank'&gt;&lt;img src='http://www.ie6nomore.com/files/theme/ie6nomore-ie8.jpg' style='border: none;' alt='Get Internet Explorer 8'/&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style='width: 73px; float: left;'&gt;&lt;a href='http://www.apple.com/safari/download/' target='_blank'&gt;&lt;img src='http://www.ie6nomore.com/files/theme/ie6nomore-safari.jpg' style='border: none;' alt='Get Safari 4'/&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style='float: left;'&gt;&lt;a href='http://www.google.com/chrome' target='_blank'&gt;&lt;img src='http://www.ie6nomore.com/files/theme/ie6nomore-chrome.jpg' style='border: none;' alt='Get Google Chrome'/&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;div id="content"&gt;Your content&lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>It appears that you've never used jQuery. I then strongly recommend to get yourself through the basic jQuery tutorials which are available at its homepage: <a href="http://docs.jquery.com/Tutorials" rel="nofollow noreferrer">http://docs.jquery.com/Tutorials</a> Good luck.</p>
 

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