Home ›
jQuery cycle plugin and Views | Chapter ThreejQuery cycle plugin and Views | Chapter Three
Submitted by Benjamin Melançon on March 24, 2010 - 8:53am
Link Title and URL:
jQuery cycle plugin and Views | Chapter Three Cycling views with only the JQuery Cycle plugin (no contrib modules).
Drupal.behaviors.your_module = function (context) {
// display the pager at the bottom
$('.view-example-name .view-content').after('<div id="pager-slide-your-module" class="pager-slide">').cycle({
fx: 'fade',
speed: 'fast',
timeout: 0,
pager: '#pager-slide-your-module',
before: function() { if (window.console) console.log(this.src); }
});
};
Comments
Post new comment