[jQuery] Re: Creating a reusable Cycle plugin powered slideshow

2009-02-12 Thread Mike Alsup
> I don't like adding classes and IDs unless it's absolutely necessary, > if you couldn't tell from my initial post. Thanks for the help and the > immediate response! Looks good!

[jQuery] Re: Creating a reusable Cycle plugin powered slideshow

2009-02-12 Thread Shane Riley
Actually, I had figured out a solution almost like what you've got here after your Twitter replies. Here's what I used to make it work: $(".slideshow ul").each(function() { e = $(this); p = $("p.controls", $(this).parent()); e.cycle(

[jQuery] Re: Creating a reusable Cycle plugin powered slideshow

2009-02-12 Thread Mike Alsup
> $('.slideshow ul').each(function() { >     var $this = $(this); >     $this.cycle({ >         // ... >         prev: $(this).prev('p').find('a.prev'); >         next: $(this).prev('p').find('a.next'); >     }); > > }); Bah, too many parens. $('.slideshow ul').each(function() { var $this =

[jQuery] Re: Creating a reusable Cycle plugin powered slideshow

2009-02-12 Thread Mike Alsup
On Feb 12, 8:55 pm, Shane Riley wrote: > I've got a project where I've got two slideshows on one page, and > they're identical markup. Instead of adding IDs to each and making two > separate cycle references, I wanted to attach the next and previous > slide events on two specific links grouped w