How to fix IE7 Z-Index Issues using Jquery

I was searching around for an easy solution regarding the stupid IE7 z-index problems and i stumbled upon this article.

Tweaked the jQuery script a bit by adding the browser check.
Here's the end result for the IE7 z-index problem, it seems to work pretty well for me.


$(document).ready(function() {
if ($.browser.msie && $.browser.msie < 8) {
var zIndexNumber = 1000;

$('div').each(function() {
$(this).css('zIndex', zIndexNumber);
zIndexNumber -= 10;
});
}
});

Technology: 

Comments

Pages

Add new comment