$(function(){
    $("pre").hover(function() {
        var codeInnerWidth = $("code", this).width() + 10;
        if (codeInnerWidth > 625) {
            $(this).stop(true, false).css({zIndex:"99",position:"relative",overflow:"hidden"}).animate({width:codeInnerWidth+"px"});
        }
    }, function() {
        $(this).stop(true, false).animate({width:625});
    });
});

(function ($) {
    $.fn.fixOverflow = function () {
        if ($.browser.msie) {
            return this.each(function () {
                if (this.scrollWidth > this.offsetWidth) {
                    $(this).css({ 'padding-bottom' : '20px', 'overflow-y' : 'hidden' });
                }
            });
        } else {
            return this;
        }
    };
})(jQuery);
// usage
$('pre').fixOverflow().doOtherPlugin();
