Hi

I'm using jquery scrollable on a front page. However it doesn't quite work as supposed.

Please observer: http://85.12.32.240/~alfact/

I need 4 items to scroll horizontally.
For some reason, I have to add in much more in the source code in order to obtain 4 items to scroll.

Basically, the problem is that when you scroll via the navigator, it scrolls 4 items at a time, and I don't know how to put that amount to 1.

In the call-up javascript, I thought you had to add in
scroll: 1,
but that doesn't work.

Does anyone have a clue of what I'm missing here?

Thanks in advance
Piet

Comments

udig’s picture

See this page http://www.flowplayer.org/tools/scrollable.html

You need to use the following code at you template.php:

jquery_plugin_add('scrollable');

drupal_add_js ('$(document).ready(function() {         
    $("div.scrollable").scrollable({
	  size:1,
	});     
  });
  ','inline');