Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Song scroller */
- var scrolling = null;
- function scroll_left() {
- $("#scroller").scrollLeft = $("#scroller").scrollLeft + 5;
- scrolling = window.setTimeout(function() {
- scroll_left();
- }, 100);
- }
- function scroll_right() {
- var d = $("#scroller");
- $("#scroller").scrollLeft = $("#scroller").scrollLeft - 5;
- scrolling = window.setTimeout(function() {
- scroll_right();
- }, 50);
- }
- function stop_scroll() {
- window.clearTimeout(scrolling);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement