I was having trouble getting my IE only stylesheet to load, so I settled for some IE only inline javascript.
But this isn't working either. Could someone have a look at my code and tell me what I'm doing wrong? I currently have it placed in a script tag at the end of my html document right above the my closing html tag.
Here is my code:
<script>
if ($.browser.msie && $.browser.version < 8) {
// IE 7 or older
$('.sidecolor, .EDGE-15678806, .edge-wrapper').css("display", "none");
$('.MobileBanner').css("display", "block");
} else {
// all other browsers
$('.sidecolor, .EDGE-15678806, .edge-wrapper').css("display", "block");
$('.MobileBanner').css("display", "none");
}
</script>
$.browser.msie && $.browser.version < 8— Why do you need to support IE 7? It won't even run on operating systems for which vital security updates are available!