<
Depuis la version < 20.1 >
modifié par Paul Libbrecht (admin)
sur 2013/09/10 14:03
À la version < 32.7 >
modifié par Paul Libbrecht
sur 2013/09/11 21:49
>
Commentaire de modification : miniature attempt

Résumé

Détails

Icon Propriétés de la Page
Auteur du document
... ... @@ -1,1 +1,1 @@
1 -XWiki.adminPolx
1 +XWiki.polx
Contenu
... ... @@ -1,20 +1,27 @@
1 -{{html clean="false"}}
2 -
3 -
4 -<div class="fadein">
5 - <div style=""><img src="http://farm3.static.flickr.com/2531/4121218751_ac8bf49d5d.jpg"></div>
6 - <div style="display:none"> <img src="http://farm3.static.flickr.com/2597/4121218611_040cd7b3f2.jpg"></div>
7 - <div style="display:none"> <img src="http://farm3.static.flickr.com/2610/4148988872_990b6da667.jpg"></div>
1 +{{html clean="false"}}
2 +blablablla
3 +<div style="height:500px; width:500px; float:right">
4 +<div id="slideshow1" class="slide"><div><img src="http://scouts.forbach.fr/xwiki/bin/download/Bleus_Camp2013/WebHome/P7270061.JPG?width=300"></div></div>
5 +<div id="slideshow2" class="slide" style="display: none"><div><img src="http://scouts.forbach.fr/xwiki/bin/download/Bleus_Camp2013/WebHome/P7270062.JPG?width=300"></div></div>
6 +<div id="slideshow3" class="slide" style="display: none"><div><img src="http://scouts.forbach.fr/xwiki/bin/download/Bleus_Camp2013/WebHome/P7270060.JPG?width=300"></div></div>
7 +<div id="slideshow4" class="slide" style="display: none"><div>frame 4</div></div>
8 8  </div>
9 +<script type="text/javascript">
10 +
11 + start_slideshow(1, 4, 5000);
12 +
13 + function start_slideshow(start_frame, end_frame, delay) {
14 + setTimeout(switch_slides(start_frame,start_frame,end_frame, delay), delay);
15 + }
16 +
17 + function switch_slides(frame, start_frame, end_frame, delay) {
18 + return (function() {
19 + Effect.Fade('slideshow' + frame);
20 + if (frame == end_frame) { frame = start_frame; } else { frame = frame + 1; }
21 + setTimeout("Effect.Appear('slideshow" + frame + "');", 850);
22 + setTimeout(switch_slides(frame, start_frame, end_frame, delay), delay + 850);
23 + })
24 + }
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 18  </script>
19 -
20 20  {{/html}}
This wiki is licensed under a Creative Commons 2.0 license
XWiki 13.10 - Documentation - Conditions