1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
| function MM_effectSlide(targetElement, duration, from, to, horizontal, toggle)
{
var LastC; if (!LastC){LastC='Accueil';}
if (LastC ='Accueil')
{
Spry.Effect.DoFade('Acceuil', {duration: 500, from: '100%', to: '0%', toggle: false});
}
if (LastC ='APropos')
{
Spry.Effect.DoFade('APropos', {duration: 500, from: '100%', to: '0%', toggle: false});
}
if (LastC ='Opto')
{
Spry.Effect.DoFade('Opto', {duration: 500, from: '100%', to: '0%', toggle: false});
}
if (LastC ='Acous')
{
Spry.Effect.DoFade('Acous', {duration: 500, from: '100%', to: '0%', toggle: false});
}
if (LastC ='Atelier')
{
Spry.Effect.DoFade('Atelier', {duration: 500, from: '100%', to: '0%', toggle: false});
}
if (LastC ='Produits')
{
Spry.Effect.DoFade('Produits',{duration: 500, from: '100%', to: '0%', toggle: false});
}
if (LastC ='Marques')
{
Spry.Effect.DoFade('Marques', {duration: 500, from: '100%', to: '0%', toggle: false});
}
if (LastC ='Promos')
{
Spry.Effect.DoFade('Promos', {duration: 500, from: '100%', to: '0%', toggle: false});
}
Spry.Effect.DoSlide(targetElement, {duration: duration, from: from, to: to, horizontal: horizontal, toggle: toggle});
LastC=targetElement;
return LastC
} |
Partager