Joel
Joel

Reputation: 895

Fade transition plugin for jQuery : Multiple instances

I've been trying to put 2 instances of this script on my site for the whole day and I can't get it to work. It's either one or the other that works, but not both at the same time.

Can you tell me how to put 2 faders in the same page?

http://www.robpoyntz.com/blog/?p=223

Thanks a bunch.

I'm trying to do this :

$("#mediaslideshow").fadeTransition({
    ignore: null,
    delayStart: 0,
    pauseTime: 3500,
    transitionTime: 1500,
    manualNavigation: false,
    pauseOnMouseOver: true,
    createNavButtons: false
});

$("#bannertroisquart").fadeTransition({
    ignore: null,
    delayStart: 0,
    pauseTime: 3500,
    transitionTime: 1500,
    manualNavigation: false,
    pauseOnMouseOver: true,
    createNavButtons: false
});

Upvotes: 0

Views: 527

Answers (2)

Levi Morrison
Levi Morrison

Reputation: 19552

This jQuery 'pro' recommends that you use a more solid plugin such as jQuery cycle. It's in use by a much wider audience and has tons of options.

Basic jQuery cycle demos:

Awesome demos:

Upvotes: 1

timting
timting

Reputation: 57

I've encountered this problem before - it's most likely because the way the script is programmed, it only allows one instance of the fader, and the second time you call it, you're overwriting the properties of the first (and only) instance. I'd recommend you go look on http://plugins.jquery.com/ and find another fade plugin - usually they'll say when they support multiple faders.

Upvotes: 0

Related Questions