Submit your widget

jQuery Perfect scrollbar plugin

Created 11 years ago   Views 13639   downloads 2326    Author noraesae
jQuery Perfect scrollbar plugin
View DemoDownload
37
Share |

There's no css change on any original element ,Do not affect the original design layout,The scrollbar css is fully customizable,The scrollbar size and position can be updated

Source

<script>
    function change_size() {
        var width = parseInt($("#Width").val());
        var height = parseInt($("#Height").val());

        if(!width || isNaN(width)) {
            width = 600;
        }
        if(!height || isNaN(height)) {
            height = 400;
        }
        $("#Demo").width(width).height(height);

        // update perfect scrollbar
        $('#Demo').perfectScrollbar('update');
    }
    $(function() {
        $('#Demo').perfectScrollbar();
    });
</script>

The article source:http://noraesae.github.com/perfect-scrollbar/

Tag: scrollbar