Skip to content

Instantly share code, notes, and snippets.

@libryder
Created July 29, 2012 04:05
Show Gist options
  • Select an option

  • Save libryder/3195993 to your computer and use it in GitHub Desktop.

Select an option

Save libryder/3195993 to your computer and use it in GitHub Desktop.
Stop IE users from seeing your site with a BSOD splash
<div id="kill_ie"><img src="/bsod.png"></div>
#kill_ie {
position: absolute;
top: 50%;
left: 50%;
text-align: center;
display: none;
background: #00006a;
z-index: 8;
}
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