0
How to leave the div result777 the same size as the div publicidade?
<script>
    $( "#result777" ).load(function() {
        if ( $("#publicidade").height() == "390px"){
            var altura3 = $("#publicidade").height();
        }
        else
        {
            var altura3 = "390px";
        }
    });
</script>
<script>
    $( document ).ready(function() {
        $('#result777').slimScroll({
            position: 'right',
            color: '#748392',
            height: altura3,
            width: '310px',
            railVisible: true,
            alwaysVisible: false,
            railColor: '#fff',
        });
    });
</script>
Check in slimScroll plugin, as Voce gives update on height. And call update function inside load.
– Roger Barretto
Send a fiddle demonstrating the problem, please. So we can help you more easily.
– Marciano.Andrade