<
Depuis la version < 32.4 >
modifié par Paul Libbrecht
sur 2013/09/11 21:47
À la version < 19.1 >
modifié par Paul Libbrecht (admin)
sur 2013/09/10 14:03
>
Commentaire de modification : x

Résumé

Détails

Icon Propriétés de la Page
Auteur du document
... ... @@ -1,1 +1,1 @@
1 -XWiki.polx
1 +XWiki.adminPolx
Contenu
... ... @@ -1,34 +1,20 @@
1 - {{velocity}}
2 -#* $xwiki.jsfx.use('js/scriptaculous/scriptaculous.js')
3 -$xwiki.jsfx.use('js/scriptaculous/effects.js')
4 -$xwiki.jsfx.use('js/protoshow/protoshow.js')
5 -## $xwiki.ssx.use('js/protoshow/protoshow.css')
6 -*#
7 -{{/velocity}}
1 +{{html clean="false"}}
8 8  
9 -{{html clean="false"}}
10 -<div style="height:300px; width:300px">
11 -<div id="slideshow1" class="slide"><div><img src="http://scouts.forbach.fr/xwiki/bin/download/Bleus_Camp2013/WebHome/P7270061.JPG?width=200"></div></div>
12 -<div id="slideshow2" class="slide" style="display: none"><div><img src="http://scouts.forbach.fr/xwiki/bin/download/Bleus_Camp2013/WebHome/P7270062.JPG?width=200"></div></div>
13 -<div id="slideshow3" class="slide" style="display: none"><div><img src="http://scouts.forbach.fr/xwiki/bin/download/Bleus_Camp2013/WebHome/P7270060.JPG?width=200"></div></div>
14 -<div id="slideshow4" class="slide" style="display: none"><div>frame 4</div></div>
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>
15 15  </div>
16 -<script type="text/javascript">
17 -
18 - start_slideshow(1, 4, 2000);
19 -
20 - function start_slideshow(start_frame, end_frame, delay) {
21 - setTimeout(switch_slides(start_frame,start_frame,end_frame, delay), delay);
22 - }
23 -
24 - function switch_slides(frame, start_frame, end_frame, delay) {
25 - return (function() {
26 - Effect.Fade('slideshow' + frame);
27 - if (frame == end_frame) { frame = start_frame; } else { frame = frame + 1; }
28 - setTimeout("Effect.Appear('slideshow" + frame + "');", 850);
29 - setTimeout(switch_slides(frame, start_frame, end_frame, delay), delay + 850);
30 - })
31 - }
32 32  
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);
33 33  </script>
19 +
34 34  {{/html}}
This wiki is licensed under a Creative Commons 2.0 license
XWiki 13.10 - Documentation - Conditions