Masquer les derniers auteurs
Paul Libbrecht 25.1 1 {{velocity}}
Paul Libbrecht (admin) 24.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 (admin) 24.1 6 {{/velocity}}
7
Paul Libbrecht 25.1 8 {{html clean="false"}}
Paul Libbrecht 29.1 9 <!-- <style type="text/css" src="/xwiki/resources/js/protoshow/protoshow.css"></style>
Paul Libbrecht 25.1 10 <div id="myshow"><!-- protoshow container -->
11 <ul class="show"><!-- slideshow itself -->
Paul Libbrecht 26.1 12 <li class="slide"><img src="http://farm3.static.flickr.com/2531/4121218751_ac8bf49d5d.jpg"></li>
13 <li class="slide" style="display: none"><img src="http://farm3.static.flickr.com/2597/4121218611_040cd7b3f2.jpg"></li>
14 <li class="slide" style="display: none"><img src="http://farm3.static.flickr.com/2610/4148988872_990b6da667.jpg"></li>
Paul Libbrecht 25.1 15 </ul>
Paul Libbrecht 29.1 16 </div> -->
Paul Libbrecht (admin) 3.1 17
Paul Libbrecht 28.1 18 <!-- <script type="text/javascript">
Paul Libbrecht 25.1 19 document.observe('load', function() {
20 // reference ID of our show container
21 var show = new protoShow('myshow');
Paul Libbrecht (admin) 21.1 22 });
Paul Libbrecht 28.1 23 </script> -->
24
25 <div id="slideshow1" class="slide"><div>frame 1</div></div>
26 <div id="slideshow2" class="slide" style="display: none"><div>frame 2</div></div>
27 <div id="slideshow3" class="slide" style="display: none"><div>frame 3</div></div>
28 <div id="slideshow4" class="slide" style="display: none"><div>frame 4</div></div>
29
30 <script type="text/javascript">
31
32 start_slideshow(1, 4, 2000);
33
34 function start_slideshow(start_frame, end_frame, delay) {
35 setTimeout(switch_slides(start_frame,start_frame,end_frame, delay), delay);
36 }
37
38 function switch_slides(frame, start_frame, end_frame, delay) {
39 return (function() {
40 Effect.Fade('slideshow' + frame);
41 if (frame == end_frame) { frame = start_frame; } else { frame = frame + 1; }
42 setTimeout("Effect.Appear('slideshow" + frame + "');", 850);
43 setTimeout(switch_slides(frame, start_frame, end_frame, delay), delay + 850);
44 })
45 }
46
Paul Libbrecht (admin) 23.1 47 </script>
Paul Libbrecht (admin) 1.1 48 {{/html}}
This wiki is licensed under a Creative Commons 2.0 license
XWiki 13.10 - Documentation - Conditions