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