Submit your widget

jQuery Perfect scrollbar plugin

Created about a year ago   Views 15993   downloads 1844    Author noraesae
jQuery Perfect scrollbar plugin
View DemoDownload 72.3 KB
54
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