> 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!
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(
> $('.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 =
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
4 matches
Mail list logo