I am trying to upgrade an old piece of code that is not working in jquery 1.10 since browser check has been removed. I don't want to use migration plugin.
How best can i do the following 2 lines?
var pos = ($.browser.msie && parseInt($.browser.version) <= 8) ? 'absolute' : 'fixed';
if ($.browser.msie && parseInt($.browser.version) <= 6)
top = top + $(window).scrollTop();
I am trying to get direction from my director to stop supporting IE 7 and less but till then i need to find a way to make the second piece of code working normal again.