Created
July 29, 2012 04:05
-
-
Save libryder/3195993 to your computer and use it in GitHub Desktop.
Stop IE users from seeing your site with a BSOD splash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="kill_ie"><img src="/bsod.png"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #kill_ie { | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| text-align: center; | |
| display: none; | |
| background: #00006a; | |
| z-index: 8; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if ($.browser.msie) { | |
| $('#kill_ie').css({ | |
| display: 'block', | |
| "margin-top": -($(window).height()/2), | |
| "margin-left": -($(window).width()/2), | |
| height: $(window).height(), | |
| widht: $(window).width() | |
| }) | |
| $('#kill_ie img').css({ | |
| width: $(window).width() | |
| }) | |
| $('html').css({ | |
| height: $(window).height(), | |
| widht: $(window).width(), | |
| overflow: 'hidden' | |
| }) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment