Masquer les derniers auteurs
Paul Libbrecht 25.1 1 {{velocity}}
Paul Libbrecht 31.1 2 #* $xwiki.jsfx.use('js/scriptaculous/scriptaculous.js')
Paul Libbrecht 25.1 3 $xwiki.jsfx.use('js/scriptaculous/effects.js')
4 $xwiki.jsfx.use('js/protoshow/protoshow.js')
Paul Libbrecht 27.1 5 ## $xwiki.ssx.use('js/protoshow/protoshow.css')
Paul Libbrecht 31.1 6 *#
Paul Libbrecht (admin) 24.1 7 {{/velocity}}
8
Paul Libbrecht 25.1 9 {{html clean="false"}}
Paul Libbrecht 28.1 10 <div id="slideshow1" class="slide"><div>frame 1</div></div>
11 <div id="slideshow2" class="slide" style="display: none"><div>frame 2</div></div>
12 <div id="slideshow3" class="slide" style="display: none"><div>frame 3</div></div>
13 <div id="slideshow4" class="slide" style="display: none"><div>frame 4</div></div>
14
15 <script type="text/javascript">
16
17 start_slideshow(1, 4, 2000);
18
19 function start_slideshow(start_frame, end_frame, delay) {
20 setTimeout(switch_slides(start_frame,start_frame,end_frame, delay), delay);
21 }
22
23 function switch_slides(frame, start_frame, end_frame, delay) {
24 return (function() {
25 Effect.Fade('slideshow' + frame);
26 if (frame == end_frame) { frame = start_frame; } else { frame = frame + 1; }
27 setTimeout("Effect.Appear('slideshow" + frame + "');", 850);
28 setTimeout(switch_slides(frame, start_frame, end_frame, delay), delay + 850);
29 })
30 }
31
Paul Libbrecht (admin) 23.1 32 </script>
Paul Libbrecht (admin) 1.1 33 {{/html}}
This wiki is licensed under a Creative Commons 2.0 license
XWiki 13.10 - Documentation - Conditions