jquery scroll
-
Hi folks,
I tried to build in this scroller for my wordpress posts:
http://jsfiddle.net/yyVbK/2/but i doesn’t work. In my wordpress-blog #sidebar is #scroll-hold and #menu is #scroller. I also added this js to the head :
<script type="text/javascript" src="http://projekt46.cwsurf.de/wp-content/themes/twentyten/js/jquery-1.4.1.js"></script> <script type="text/javascript" charset="utf-8"> jQuery(document).ready(function(){ $('#up').bind('mousedown mouseup', function(event){ if(event.type == 'mousedown'){ $('#scroller').animate({"scrollTop": "-=2000px"}, 3000, 'linear'); }else{ $('#scroller').stop(); } }); $('#down').bind('mousedown mouseup', function(event){ if(event.type == 'mousedown'){ $('#scroller').animate({"scrollTop": "+=2000px"}, 3000, 'linear'); }else{ $('#scroller').stop(); } }); }); </script>Please help me. I don’t find the bug.
Your qlee46
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘jquery scroll’ is closed to new replies.