Sly Scroller JqueryJquery

JQuery-Programmierung
Guest
 Sly Scroller Jquery

Post by Guest »

Ich würde gerne das folgende Plugin verwenden: http://darsa.in/sly/, aber ich bekomme es nicht zum Laufen. Hier sind einige Details zu meinem Code.
Ich habe Folgendes HTML:

Code: Select all





[list]
[*][url=#]
[img]/images/users/7.jpg[/img]
[/url]
[*][url=#]
[img]/images/users/7.jpg[/img]
[/url][/list]


und folgende JS:

Code: Select all

$(document).find(".scroller").each(function (i, element) {

var $cont = $(element),
$frame = $cont.find(".sly"),
$scrollbar = $cont.find(".scrollbar");

$frame.sly({
// Sly type
horizontal: 1,    // Change to horizontal direction.
itemNav:    null, // Item navigation type. Can be: basic, smart, centered, forceCentered.

// Scrollbar
scrollBar:     $scrollbar, // Selector or DOM element for scrollbar container.
dragHandle:    0,    // Whether the scrollbar handle should be dragable.
dynamicHandle: 0,    // Scrollbar handle represents the relation between hidden and visible content.
minHandleSize: 50,   // Minimal height or width (depends on sly direction) of a handle in pixels.
clickBar:      0,    // Enable navigation by clicking on scrollbar.
syncFactor:    0.50, // Handle => SLIDEE sync factor. 0-1 floating point, where 1 = immediate, 0 = infinity.
});
$frame.sly('reload');
});
Aber irgendwie funktioniert Sly-Scroller nicht? Danke für die Hilfe!

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post