i’m trying to use a scrollbar plugin written with jquery : tinyscrollbar.
you can find it here : website about tinyscrollbar jquery plugin
i use jquery 5 with this command :
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
and i cal it just after :
<script type="text/javascript">
$(document).ready(function(){
$('#scrollbar1').tinyscrollbar();
});
</script>
and finally here is the html code :
<div id="scrollbar1">
<div class="scrollbar"><div class="track"><div class="thumb"><div class="end"></div></div></div></div>
<div class="viewport">
<div class="overview">
<?php echo $content;?>
</div>
</div>
</div>
i have a bug while loading the plugin (or another, i’ve tried many…) : Firebug tell me
$("#scrollbar1").tinyscrollbar(); is not a function.
but the script is loaded and i’ve try to make an alert and that work perfectly
have you got an idea???
PS : sorry for my english… it’s not my language ^^’
You need to load the plugin. So far all you have loaded is jquery.