User login

Reply to comment

SimpleScroll jQuery Plugin

This jQuery plugin provides scrolling functionality for text-based JavaScript arrays.
Requires jQuery UI - http://ui.jquery.com/download_builder/ - Effect "Slide".

Usage
Declare a JavaScript array:

var arr = ["one", "two", "three", " four"];

Parameters:

  • Array to scroll through
  • Scroll container id
  • 'Previous' navigation button id
  • 'Next' navigation button id

Optionally, you can set the scroll speed. The default is 1000 ms.
You need to create an external div, an internal div to hold the scrolling pane, and 2 navigation buttons.

An example:

$(document).ready(function() {
$("#outsideContainer").simpleScroll(arr, "#slidefx", "#doSlidePrev", "#doSlideNext", {speed:1000});
});

Demo

Download

Reply

The content of this field is kept private and will not be shown publicly.