<
Depuis la version < 19.1 >
modifié par Paul Libbrecht (admin)
sur 2013/09/10 14:03
À la version < 8.1 >
modifié par Paul Libbrecht (admin)
sur 2013/09/10 13:31
>
Commentaire de modification : plus beau?

Résumé

Détails

Icon Propriétés de la Page
Contenu
... ... @@ -1,20 +1,32 @@
1 1  {{html clean="false"}}
2 2  
3 + <script type="text/javascript">// <![CDATA[
4 +var Slides = new Array();
5 +var wait = 1000;
6 +var i=0;
3 3  
4 -<div class="fadein">
5 - <div style="display:hidden"><img src="http://farm3.static.flickr.com/2531/4121218751_ac8bf49d5d.jpg"></div>
6 - <div style="display:hidden"> <img src="http://farm3.static.flickr.com/2597/4121218611_040cd7b3f2.jpg"></div>
7 - <div style="display:hidden"> <img src="http://farm3.static.flickr.com/2610/4148988872_990b6da667.jpg"></div>
8 +function SlideShow()
9 +{
10 + Effect.Fade(Slides[i], { duration:2, from:1.0, to:0.0 });
11 + i++;
12 + if (i == Slides.length) i = 0;
13 + Effect.Appear(Slides[i], { duration:2, from:0.0, to:1.0 });
14 +}
15 +
16 +document.observe('dom:loaded',function()
17 + {
18 + setInterval(SlideShow, wait);
19 + Slides = $$('#slideshow-content>div').toArray();
20 + }
21 + );
22 +// ]]></script>
23 +
24 + <div id="slideshow-content">
25 +<div id="slide1" style="width: 450px; position: absolute;"><img src="/xwiki/bin/download/Louveteaux_Camp2013/Photos/camp%2Dloulou%2Dphotos%2Dpaul%2D1.jpg?width=450" alt="" /></div>
26 +<div id="slide2" style="width: 450px; position: absolute; display: none;"><img src="/xwiki/bin/download/Louveteaux_Camp2013/Photos/DSC05013.JPG?width=450" alt="" /></div>
27 +<div id="slide3" style="width: 450px; position: absolute; display: none;"><img src="/xwiki/bin/download/Louveteaux_Camp2013/Photos/DSC05093.JPG?width=450" alt="" /></div>
8 8  </div>
29 +<div class="controls"><a href="#slide">1</a> <a href="#slide">2</a> <a href="#slide3">3</a></div>
9 9  
10 -<script>
11 -setInterval(function(){
12 - var imgs = $$('.fadein img'),
13 - visible = imgs.findAll(function(img){ return img.visible(); });
14 - if(visible.length>1) visible.last().fade({ duration: .3 });
15 - else imgs.last().appear({ duration: .3,
16 - afterFinish: function(){ imgs.slice(0,imgs.length-1).invoke('show'); } });
17 -}, 3000);
18 -</script>
19 19  
20 20  {{/html}}
This wiki is licensed under a Creative Commons 2.0 license
XWiki 13.10 - Documentation - Conditions