diff options
Diffstat (limited to 'theme/js/jquery.ie6blocker.js')
| -rw-r--r-- | theme/js/jquery.ie6blocker.js | 34 |
1 files changed, 34 insertions, 0 deletions
| diff --git a/theme/js/jquery.ie6blocker.js b/theme/js/jquery.ie6blocker.js new file mode 100644 index 0000000..222f335 --- /dev/null +++ b/theme/js/jquery.ie6blocker.js | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | var IE6 = (navigator.userAgent.indexOf("MSIE 6")>=0) ? true : false; | ||
| 2 | if(IE6){ | ||
| 3 | |||
| 4 | $(function(){ | ||
| 5 | |||
| 6 | $("<div>") | ||
| 7 | .css({ | ||
| 8 | 'position': 'absolute', | ||
| 9 | 'top': '0px', | ||
| 10 | 'left': '0px', | ||
| 11 | backgroundColor: 'black', | ||
| 12 | 'opacity': '0.75', | ||
| 13 | 'width': '100%', | ||
| 14 | 'height': $(window).height(), | ||
| 15 | zIndex: 5000 | ||
| 16 | }) | ||
| 17 | .appendTo("body"); | ||
| 18 | |||
| 19 | $("<div><img src='/theme/images/no-ie6.png' alt='' style='float: left;'/><p><br /><strong>Sorry! This page doesn't support Internet Explorer 6.</strong><br /><br />If you'd like to read our content please <a href='http://getfirefox.org'>upgrade your browser</a> or <a href='/rss.php'>subscribe to our RSS feed</a>.</p>") | ||
| 20 | .css({ | ||
| 21 | backgroundColor: 'white', | ||
| 22 | 'top': '50%', | ||
| 23 | 'left': '50%', | ||
| 24 | marginLeft: -210, | ||
| 25 | marginTop: -100, | ||
| 26 | width: 410, | ||
| 27 | paddingRight: 10, | ||
| 28 | height: 200, | ||
| 29 | 'position': 'absolute', | ||
| 30 | zIndex: 6000 | ||
| 31 | }) | ||
| 32 | .appendTo("body"); | ||
| 33 | }); | ||
| 34 | } | ||
