První funkce je volána bez parametrů a bude tedy spuštěna s defaultními hodnotami, které jsou popsány výše. Druhá se všemi parametry
<script>
$(document).ready(function(){
$("#scrollbar_container").createThScrollBar();
$("#scrollbar_container_2").createThScrollBar({
ShowVertical: true,
ShowHorizontal: true,
ArrowAutoScroll: false,
ShowArrows: true,
ScrWidthHeight: 16,
ScrArrowsHeight: 18,
MouseWheelSpeed: 40,
scrollStepper: false,
scrollStepperAnimate: false,
ScrStep: 5
});
});
</script>
<div class="t_h_scrollbar purple_squer" id="scrollbar_container">
<!-- Váš obsah -->
</div>
<div class="t_h_scrollbar purple_squer" id="scrollbar_container_1">
<!-- Váš obsah -->
</div>