jquery scrollable in drupal

pietdepauw - April 15, 2009 - 16:15
Project:jQuery plugins
Version:6.x-1.7
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

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

#1

udig - April 20, 2009 - 10:27

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');

 
 

Drupal is a registered trademark of Dries Buytaert.