PDA

View Full Version : contentslider after 2 cycles



admis
09-10-2008, 11:09 PM
1) Script Title: content slider v.2.4

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/featuredcontentslider.htm

3) Describe problem: Is there a way to have the auto rotation stop after 2 cycles? I saw a similar request in the archives but it doesn’t seem to work for v 2.4.

ddadmin
09-11-2008, 05:54 PM
Sure, the modified .js file adds such a feature. When initializing your slider, define an extra parameter in red specifying the number of cycles:


featuredcontentslider.init({
id: "slider2", //id of main slider DIV
contentsource: ["inline", ""], //Valid values: ["inline", ""] or ["ajax", "path_to_file"]
toc: "markup", //Valid values: "#increment", "markup", ["label1", "label2", etc]
nextprev: ["Previous", "Next"], //labels for "prev" and "next" links. Set to "" to hide.
revealtype: "click", //Behavior of pagination links to reveal the slides: "click" or "mouseover"
enablefade: [true, 0.2], //[true/false, fadedegree]
autorotate: [false, 3000, 2], //[true/false, pausetime]

admis
09-11-2008, 06:19 PM
Thank you very much!