[jQuery] Re: Cycle Plugin - Changing the options of the cycle
My solution was to show/hide one of 2 cycles, depending on which one i needed, using .css('display', 'none') and .fadeIn. Once it was hidden i stopped the cycle i hide and use .fadeIn to show the one i want. Then it is started. Both cycles use the same pager, next, and prev options. The pager only works 100% on the initial document.ready creation of the cycle. After switching to another cycle the indicators are the only thing that work. The indicators might not work if the cycles don't have the same number of elements. They aren't part of the start for .click event of my cycle selection. On Aug 14, 9:24 am, Z-Ender wrote: > I define a cycle in document.ready as per usual. In my cycle I have > different sets of images that i want to cycle through and only want > certain ones to cycle as selected using the slideExpr option. Is > there a way to change this option from: > slideExpr: 'a' > to: > slideExpr: 'b' > > another alternative i've considered is to make a cycle of cycles. > Does anyone have an example of that?
[jQuery] Re: Cycle Plugin - Changing the options of the cycle
Also maybe I don't understand what slideExpr does but I thought it didn't look at child elements. I've set it to slideExpr: "div" and i have nested div tags. ex this renders as 4 slides when i set slideExpr. Is this expected behavior? I think what i really need would a classExpr. On Aug 14, 11:45 am, Mike Alsup wrote: > > I define a cycle in document.ready as per usual. In my cycle I have > > different sets of images that i want to cycle through and only want > > certain ones to cycle as selected using the slideExpr option. Is > > there a way to change this option from: > > slideExpr: 'a' > > to: > > slideExpr: 'b' > > Nope. But you could stop and then restart the slideshow with a diff > slideExpr.
[jQuery] Re: Cycle Plugin - Changing the options of the cycle
Thanks for the response. >But you could stop and then restart the slideshow with a diff >slideExpr. I'm not sure if I understand how to do that. Am I recreating the cycle to set the new slideExpr like this? $("#chg").click(function(){ $('#show).cycle('stop'); $('#show).cycle({ fx: 'scrollHorz' , slideExpr:'b' , next: "#next" , prev: "#prev" }) } I've tried something like the above and it just stopped working. Have I missed anything?
[jQuery] Cycle Plugin - Changing the options of the cycle
I define a cycle in document.ready as per usual. In my cycle I have different sets of images that i want to cycle through and only want certain ones to cycle as selected using the slideExpr option. Is there a way to change this option from: slideExpr: 'a' to: slideExpr: 'b' another alternative i've considered is to make a cycle of cycles. Does anyone have an example of that?