<
Depuis la version < 26.1 >
modifié par Paul Libbrecht
sur 2013/09/11 21:29
À la version < 32.2 >
modifié par Paul Libbrecht
sur 2013/09/11 21:46
>
Commentaire de modification : miniature attempt

Résumé

Détails

Icon Propriétés de la Page
Contenu
... ... @@ -1,23 +1,34 @@
1 1   {{velocity}}
2 -$xwiki.jsfx.use('js/scriptaculous/scriptaculous.js')
2 +#* $xwiki.jsfx.use('js/scriptaculous/scriptaculous.js')
3 3  $xwiki.jsfx.use('js/scriptaculous/effects.js')
4 4  $xwiki.jsfx.use('js/protoshow/protoshow.js')
5 -$xwiki.ssx.use('js/protoshow/protoshow.css')
5 +## $xwiki.ssx.use('js/protoshow/protoshow.css')
6 +*#
6 6  {{/velocity}}
7 7  
8 8  {{html clean="false"}}
9 -<div id="myshow"><!-- protoshow container -->
10 - <ul class="show"><!-- slideshow itself -->
11 -<li class="slide"><img src="http://farm3.static.flickr.com/2531/4121218751_ac8bf49d5d.jpg"></li>
12 -<li class="slide" style="display: none"><img src="http://farm3.static.flickr.com/2597/4121218611_040cd7b3f2.jpg"></li>
13 -<li class="slide" style="display: none"><img src="http://farm3.static.flickr.com/2610/4148988872_990b6da667.jpg"></li>
14 - </ul>
10 +<div style="height:200; width:200">
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>
15 15  </div>
16 -
17 17  <script type="text/javascript">
18 -document.observe('load', function() {
19 - // reference ID of our show container
20 - var show = new protoShow('myshow');
21 -});
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 +
22 22  </script>
23 23  {{/html}}
This wiki is licensed under a Creative Commons 2.0 license
XWiki 13.10 - Documentation - Conditions